We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c87f32 commit fa5e551Copy full SHA for fa5e551
src/layouts/SketchLayout.astro
@@ -35,9 +35,6 @@ setJumpToState(null);
35
const moreSketches = await getRandomCurationSketches(4);
36
const featuredImageURL = makeThumbnailUrl(sketchId);
37
38
-// NOTE: Commenting out the call to getSketchSize to minimise calls to OP due to rate limiting
39
-// width and height should be moved to data fetched by either getCuratedSketches or getSketch to minimise calls.
40
-
41
let { width, height } = await getSketchSize(sketchId);
42
let heightOverWidth = 1 / 1.5;
43
if (width && height) {
@@ -46,10 +43,6 @@ if (width && height) {
46
heightOverWidth = height / width;
47
44
}
48
45
49
-// let width = undefined;
50
-// let height = undefined;
51
-// let heightOverWidth = 1 / 1.5;
52
53
const iframeTitle = `OpenProcessing Sketch: ${title} by ${authorName}`;
54
---
55
0 commit comments