Skip to content

Commit b70a309

Browse files
r0bnjshcrowthe
authored andcommitted
extended build config webchannel-wrapper to support web worker - based on issue #285 (#346)
1 parent cc92e4a commit b70a309

File tree

1 file changed

+1
-1
lines changed
  • packages/webchannel-wrapper/tools

1 file changed

+1
-1
lines changed

packages/webchannel-wrapper/tools/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ closureBuilder.build({
2626
options: {
2727
closure: {
2828
output_wrapper:
29-
"(function() {%output%}).call(typeof window !== 'undefined' ? window : this)",
29+
"(function() {%output%}).call(typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : {})",
3030
language_out: 'ECMASCRIPT5',
3131
compilation_level: 'ADVANCED_OPTIMIZATIONS'
3232
}

0 commit comments

Comments
 (0)