Skip to content

Commit e1ecf20

Browse files
authored
Merge pull request #192 from easycoder/dev
Special case for Codex
2 parents 4ff6a59 + e495ad1 commit e1ecf20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/easycoder/Browser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,8 @@ const EasyCoder_Browser = {
451451
}
452452
} else {
453453
const imports = compiler.imports;
454-
if (imports && imports.length > 0
455-
&& compiler.program[compiler.symbols[imports[0]].pc].keyword === `div`) {
454+
if (imports && imports.length > 0 && compiler.parent === `Codex`) {
455+
// && compiler.program[compiler.parent.symbols[imports[0]].pc].keyword === `div`) {
456456
// This is used by Codex to force run in Run panel, which must be the first import
457457
compiler.addCommand({
458458
domain: `browser`,

0 commit comments

Comments
 (0)