Skip to content

Commit

Permalink
Fix undefined error in worker. (#2038)
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda authored Mar 10, 2020
1 parent 6d5fc3d commit 5534253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/cli-support/src/js/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ impl<'a> Context<'a> {
"\
if (typeof input === 'undefined') {
let src;
if (document === undefined) {
if (typeof document === 'undefined') {
src = location.href;
} else {
src = document.currentScript.src;
Expand Down

0 comments on commit 5534253

Please sign in to comment.