diff --git a/devtools.html b/devtools.html index 0eaf379..20696ee 100644 --- a/devtools.html +++ b/devtools.html @@ -1,2 +1,3 @@ + diff --git a/gulpfile.js b/gulpfile.js index de2ac70..fb98b12 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -23,13 +23,9 @@ gulp.task('webextension',function(cb){ !fs.existsSync('public') && fs.mkdirSync('public'); fs.mkdirSync('public/js'); } - exec('npm install',{ - cwd: 'node_modules/webextension-polyfill/' - },function(){ - var stream = fs.createWriteStream('public/js/browser-polyfill.min.js'); - stream.on('done',cb); - fs.createReadStream('node_modules/webextension-polyfill/dist/browser-polyfill.min.js').pipe(stream); - }); + + fs.copyFileSync('node_modules/webextension-polyfill/dist/browser-polyfill.min.js', 'public/js/browser-polyfill.min.js'); + fs.copyFileSync('node_modules/webextension-polyfill/dist/browser-polyfill.min.js.map', 'public/js/browser-polyfill.min.js.map'); }); /* diff --git a/options.html b/options.html index db1e980..ffaf58e 100644 --- a/options.html +++ b/options.html @@ -12,6 +12,7 @@
+ diff --git a/package.json b/package.json index 8ebd193..53055a7 100755 --- a/package.json +++ b/package.json @@ -10,18 +10,12 @@ "postinstall": "gulp postinstall", "validate": "npm ls" }, - "pre-commit": [ - "lint" - ], + "pre-commit": ["lint"], "jest": { - "testFileExtensions": [ - "jest.js" - ], + "testFileExtensions": ["jest.js"], "scriptPreprocessor": "/node_modules/babel-jest", "testDirectoryName": "tests", - "unmockedModulePathPatterns": [ - "/node_modules/react" - ] + "unmockedModulePathPatterns": ["/node_modules/react"] }, "private": true, "devDependencies": { @@ -54,7 +48,7 @@ "react": "^16.2.0", "react-dom": "^16.2.0", "react-transition-group": "^1.0.0", - "webextension-polyfill": "^0.2.1" + "webextension-polyfill": "^0.4.0" }, "jshintConfig": { "asi": false, diff --git a/popup.html b/popup.html index d6f8133..699e034 100644 --- a/popup.html +++ b/popup.html @@ -7,12 +7,12 @@ WakaTime -
+