Skip to content

Commit 58d8d09

Browse files
committed
[code sandbox] Don't assume chapter 22 is about node
1 parent a346ef3 commit 58d8d09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html/js/code.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ addEventListener("load", function() {
102102
clearSandbox();
103103
var chapter = getChapter(chapters.value), visible;
104104
if (value == "box") {
105-
var code = chapters.value < 20
105+
var code = (chapters.value < 20 || chapters.value > 21)
106106
? "Run code here in the context of Chapter " + chapter.number
107107
: "Code from Node.js chapters can't be run in the browser";
108108
var guessed = guessType(chapter.start_code);

0 commit comments

Comments
 (0)