Browse Source

fix: attach VM_initializeWeb to window

Firefox issue
Gerald 8 years ago
parent
commit
626e6a0d05
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/webpack.conf.js

+ 1 - 1
scripts/webpack.conf.js

@@ -67,7 +67,7 @@ targets.push(merge(base, {
   plugins: [
     new WrapperWebpackPlugin({
       header: `\
-var VM_initializeWeb = function () {
+window.VM_initializeWeb = function () {
   var module = { exports: {} };
 `,
       footer: `