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 66977e6 commit 3b2094bCopy full SHA for 3b2094b
src/window.js
@@ -339,8 +339,10 @@ export default function Window({ application, session }) {
339
340
const lang = langs[language.toLowerCase()];
341
// Do nothing if there is no code to avoid compile errors
342
+ // unless the language is JavaScript, because in this case
343
+ // this is probably a demo without code.
344
const text = lang.document.code_view.buffer.text.trim();
- if (text === "") {
345
+ if (text === "" && language !== "JavaScript") {
346
return;
347
}
348
0 commit comments