Skip to content

Commit 0a375b7

Browse files
rayslavadavazp
authored andcommitted
Update prelude.js to eval scripts correctly
At least in Firefox the documentScripts[i].src is read as "" when there's no src attribute, this leads to attempt to evaluate the whole document HTML.
1 parent c03d583 commit 0a375b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/prelude.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ function runCommonLispScripts() {
464464
continue;
465465
}
466466

467-
if("src" in documentScripts[i]) {
467+
if("src" in documentScripts[i] && documentScripts[i].src.length != 0) {
468468
script = {
469469
executed: false,
470470
error: false,

0 commit comments

Comments
 (0)