From 4072b3cfb773a78c44c3a9b42bb2cccc9f65edb6 Mon Sep 17 00:00:00 2001 From: Jack Works Date: Tue, 14 May 2019 11:07:16 +0800 Subject: [PATCH] Attempt to support Firefox Signed-off-by: Jack Works --- config-overrides.js | 2 +- package.json | 2 +- public/index.html | 2 +- public/manifest.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config-overrides.js b/config-overrides.js index 76eed08e878b..d3e5954ba961 100644 --- a/config-overrides.js +++ b/config-overrides.js @@ -30,7 +30,7 @@ module.exports = function override(/** @type{import("webpack").Configuration} */ ) // Write files to /public const polyfills = [ - 'node_modules/construct-style-sheets-polyfill/adoptedStyleSheets.min.js', + 'node_modules/construct-style-sheets-polyfill/adoptedStyleSheets.js', 'node_modules/webextension-polyfill/dist/browser-polyfill.min.js', 'node_modules/webextension-polyfill/dist/browser-polyfill.min.js.map', 'node_modules/webcrypto-liner/dist/webcrypto-liner.shim.js', diff --git a/package.json b/package.json index 7d1f8ad735f3..c31a26903b59 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "@types/react-router-dom": "^4.3.2", "@types/tiny-secp256k1": "^1.0.0", "classnames": "^2.2.6", - "construct-style-sheets-polyfill": "^1.0.3", + "construct-style-sheets-polyfill": "https://github.com/calebdwilliams/construct-style-sheets", "copy-webpack-plugin": "^5.0.0", "elliptic": "^6.4.1", "gun": "0.2019.422", diff --git a/public/index.html b/public/index.html index 65b7f0989d5e..aa8a297838e0 100644 --- a/public/index.html +++ b/public/index.html @@ -1,7 +1,6 @@ - @@ -19,5 +18,6 @@
+ diff --git a/public/manifest.json b/public/manifest.json index 81e740003929..d66370320493 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -6,7 +6,7 @@ "content_scripts": [ { "matches": ["https://www.facebook.com/*"], - "js": ["polyfill/adoptedStyleSheets.min.js", "polyfill/browser-polyfill.min.js", "js/contentscript.js"], + "js": ["polyfill/adoptedStyleSheets.js", "polyfill/browser-polyfill.min.js", "js/contentscript.js"], "run_at": "document_idle", "all_frames": true }