mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
Rename lockdown.cjs
to lockdown.js
(#10026)
When you load an extension `.zip` file in Firefox, it fails to load scripts with the `.cjs` file extension. However, it works if you load the extension via the `manifest.json` file instead. After renaming the `lockdown.cjs` file to `lockdown.js`, it works in Firefox in all cases, regardless whether it's loaded by manifest or by `.zip`.
This commit is contained in:
parent
e9b5386f74
commit
07fab76dd0
@ -12,7 +12,7 @@
|
||||
<div id="popover-content"></div>
|
||||
<script src="./globalthis.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./initSentry.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./lockdown.cjs" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./lockdown.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./runLockdown.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./ui-libs.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./ui.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
"scripts": [
|
||||
"globalthis.js",
|
||||
"initSentry.js",
|
||||
"lockdown.cjs",
|
||||
"lockdown.js",
|
||||
"runLockdown.js",
|
||||
"bg-libs.js",
|
||||
"background.js"
|
||||
@ -39,7 +39,7 @@
|
||||
"matches": ["file://*/*", "http://*/*", "https://*/*"],
|
||||
"js": [
|
||||
"globalthis.js",
|
||||
"lockdown.cjs",
|
||||
"lockdown.js",
|
||||
"runLockdown.js",
|
||||
"contentscript.js"
|
||||
],
|
||||
|
@ -35,7 +35,7 @@
|
||||
<div id="popover-content"></div>
|
||||
<script src="./globalthis.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./initSentry.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./lockdown.cjs" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./lockdown.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./runLockdown.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./ui-libs.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./ui.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<title>Ethereum Phishing Detection - MetaMask</title>
|
||||
<script src="./globalthis.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./lockdown.cjs" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./lockdown.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./runLockdown.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./phishing-detect.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="./index.css" title="ltr">
|
||||
|
@ -12,7 +12,7 @@
|
||||
<div id="popover-content"></div>
|
||||
<script src="./globalthis.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./initSentry.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./lockdown.cjs" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./lockdown.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./runLockdown.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./ui-libs.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./ui.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
@ -49,9 +49,8 @@ const copyTargets = [
|
||||
dest: `globalthis.js`,
|
||||
},
|
||||
{
|
||||
src: `./node_modules/ses/dist/`,
|
||||
pattern: `lockdown.cjs`,
|
||||
dest: ``,
|
||||
src: `./node_modules/ses/dist/lockdown.cjs`,
|
||||
dest: `lockdown.js`,
|
||||
},
|
||||
{
|
||||
src: `./app/scripts/`,
|
||||
|
Loading…
Reference in New Issue
Block a user