Skip to content

Commit 792cfd0

Browse files
committed
Add comment
1 parent aa5ca9f commit 792cfd0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/CodeEmbed/frame.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ canvas {
4242
}
4343
${code.css || ""}
4444
</style>
45+
<!-- If we need an addon script, load p5 the usual way with no caching to make sure
46+
the import order doesn't get messed up. -->
4547
${((code.scripts?.length ?? 0) > 0 ? [cdnLibraryUrl, ...(code.scripts ?? [])] : []).map((src) => `<script type="text/javascript" src="${src}"></script>`).join('\n')}
4648
<body>${code.htmlBody || ""}</body>
4749
<script id="code" type="text/javascript">${wrapSketch(code.js) || ""}</script>

0 commit comments

Comments
 (0)