Skip to content

Commit

Permalink
Attempt to support Firefox
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Works <[email protected]>
  • Loading branch information
Jack-Works committed May 14, 2019
1 parent 92fd916 commit 4072b3c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config-overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<!DOCTYPE html>
<html lang="en">
<head>
<script src="polyfill/adoptedStyleSheets.min.js"></script>
<script src="polyfill/browser-polyfill.min.js"></script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
Expand All @@ -19,5 +18,6 @@
</head>
<body>
<div id="root"></div>
<script src="polyfill/adoptedStyleSheets.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 4072b3c

Please sign in to comment.