Skip to content

Commit

Permalink
Fix JS strict mode error in shell_minimal.js (#20226)
Browse files Browse the repository at this point in the history
  • Loading branch information
steveanton authored Sep 11, 2023
1 parent 526d14d commit dec7f7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shell_minimal.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ var _scriptDir = (typeof document != 'undefined' && document.currentScript) ? do
var ENVIRONMENT_IS_WORKER = typeof importScripts == 'function',
ENVIRONMENT_IS_PTHREAD = ENVIRONMENT_IS_WORKER && !ENVIRONMENT_IS_WASM_WORKER;
#else
var ENVIRONMENT_IS_WORKER = ENVIRONMENT_IS_PTHREAD = typeof importScripts == 'function';
var ENVIRONMENT_IS_WORKER = typeof importScripts == 'function',
ENVIRONMENT_IS_PTHREAD = ENVIRONMENT_IS_WORKER;
#endif

var currentScriptUrl = typeof _scriptDir != 'undefined' ? _scriptDir : ((typeof document != 'undefined' && document.currentScript) ? document.currentScript.src : undefined);
Expand Down

0 comments on commit dec7f7d

Please sign in to comment.