Skip to content

Commit 5534253

Browse files
authored
Fix undefined error in worker. (#2038)
1 parent 6d5fc3d commit 5534253

File tree

1 file changed

+1
-1
lines changed
  • crates/cli-support/src/js

1 file changed

+1
-1
lines changed

crates/cli-support/src/js/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ impl<'a> Context<'a> {
542542
"\
543543
if (typeof input === 'undefined') {
544544
let src;
545-
if (document === undefined) {
545+
if (typeof document === 'undefined') {
546546
src = location.href;
547547
} else {
548548
src = document.currentScript.src;

0 commit comments

Comments
 (0)