Skip to content

Commit fa5e551

Browse files
committed
remove comments about getSketcheSize, should be implemented after OP api is updated
1 parent 7c87f32 commit fa5e551

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/layouts/SketchLayout.astro

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ setJumpToState(null);
3535
const moreSketches = await getRandomCurationSketches(4);
3636
const featuredImageURL = makeThumbnailUrl(sketchId);
3737
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-
4138
let { width, height } = await getSketchSize(sketchId);
4239
let heightOverWidth = 1 / 1.5;
4340
if (width && height) {
@@ -46,10 +43,6 @@ if (width && height) {
4643
heightOverWidth = height / width;
4744
}
4845
49-
// let width = undefined;
50-
// let height = undefined;
51-
// let heightOverWidth = 1 / 1.5;
52-
5346
const iframeTitle = `OpenProcessing Sketch: ${title} by ${authorName}`;
5447
---
5548

0 commit comments

Comments
 (0)