File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed
Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -39,13 +39,20 @@ setJumpToState(null);
3939const moreSketches = await getRandomCurationSketches (4 );
4040const featuredImageURL = makeThumbnailUrl (sketchInfo .visualID );
4141
42- let { width, height } = await getSketchSize (sketchInfo .visualID );
42+ // NOTE: Commenting out the call to getSketchSize to minimise calls to OP due to rate limiting
43+ // width and height should be moved to data fetched by either getCuratedSketches or getSketch to minimise calls.
44+
45+ // let { width, height } = await getSketchSize(sketchInfo.visualID);
46+ // let heightOverWidth = 1 / 1.5;
47+ // if (width && height) {
48+ // // Account for OP header bar
49+ // height += 50;
50+ // heightOverWidth = height / width;
51+ // }
52+
53+ let width = undefined ;
54+ let height = undefined ;
4355let heightOverWidth = 1 / 1.5 ;
44- if (width && height ) {
45- // Account for OP header bar
46- height += 50 ;
47- heightOverWidth = height / width ;
48- }
4956
5057const iframeTitle = ` OpenProcessing Sketch: ${title } by ${authorName } ` ;
5158---
You can’t perform that action at this time.
0 commit comments