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);
39
39
const moreSketches = await getRandomCurationSketches (4 );
40
40
const featuredImageURL = makeThumbnailUrl (sketchInfo .visualID );
41
41
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 ;
43
55
let heightOverWidth = 1 / 1.5 ;
44
- if (width && height ) {
45
- // Account for OP header bar
46
- height += 50 ;
47
- heightOverWidth = height / width ;
48
- }
49
56
50
57
const iframeTitle = ` OpenProcessing Sketch: ${title } by ${authorName } ` ;
51
58
---
You can’t perform that action at this time.
0 commit comments