Skip to content

Commit f7261e7

Browse files
hotfix unexpected code block run (#72)
1 parent 8e15423 commit f7261e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ marked.use({
4848
// "Run"
4949
if (exampleID == "intro-chatgpt")
5050
html += `<a href="/playground/?autorun=1" class="code-button run-code-button" target="_blank"><span class="run"></span></a>`;
51-
else
51+
else if (exampleID)
5252
html += `<a href="/playground/${exampleID}/?autorun=1" class="code-button run-code-button" target="_blank"><span class="run"></span></a>`;
5353

5454
// "Copy"

0 commit comments

Comments
 (0)