diff --git a/.gitignore b/.gitignore
index 65b61b6..2068390 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
-/web-ext-artifacts
\ No newline at end of file
+/web-ext-artifacts
+browser-polyfill.js
diff --git a/background/index.html b/background/index.html
index 1440dc9..17f1397 100644
--- a/background/index.html
+++ b/background/index.html
@@ -3,7 +3,7 @@
/usr/space
-
+
diff --git a/package.json b/package.json
index 789ffb4..2fb756b 100644
--- a/package.json
+++ b/package.json
@@ -9,8 +9,10 @@
"web-ext-types": "^3.2.1"
},
"scripts": {
+ "copy-browser-polyfill": "cp node_modules/webextension-polyfill/dist/browser-polyfill.js browser-polyfill.js",
"copy-version": "sed -i 's/^\t\"version\": \".*\",$/\t\"version\": \"'$(rg '^\t\"version\": \"(.+)\",$' -r '$1' < package.json)'\",/' manifest.json",
"test": "echo \"Error: no test specified\" && exit 0",
+ "postinstall": "npm run copy-browser-polyfill",
"preversion": "npm test",
"version": "npm run copy-version && git add -u",
"postversion": "web-ext build"
diff --git a/popup/index.html b/popup/index.html
index e345c58..c795db0 100644
--- a/popup/index.html
+++ b/popup/index.html
@@ -63,7 +63,7 @@
-
+