Skip to content

Commit 1d4ce46

Browse files
committed
fixes
1 parent f9efb8a commit 1d4ce46

File tree

10 files changed

+34
-21
lines changed

10 files changed

+34
-21
lines changed

public/extensions/MetaMask_v10.22.2/background-3.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/extensions/MetaMask_v10.22.2/common-0.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/extensions/MetaMask_v10.22.2/content-script-0.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/extensions/MetaMask_v10.22.2/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
}
6767
],
6868
"default_locale": "en",
69-
"description": "other build from git id: 0f96e8e3",
69+
"description": "other build from git id: 12a70f30",
7070
"host_permissions": [
7171
"http://localhost:8545/",
7272
"file://*/*",

public/extensions/MetaMask_v10.22.2/scripts/app-init.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/extensions/MetaMask_v10.22.2/scripts/contentscript.js

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/extensions/MetaMask_v10.22.2/scripts/runtime-lavamoat.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
// security options are hard-coded at build time
9595
const {
9696
scuttleGlobalThis,
97-
} = {"scuttleGlobalThis":{"enabled":true,"scuttlerName":"SCUTTLER","exceptions":["Proxy","toString","getComputedStyle","addEventListener","removeEventListener","ShadowRoot","HTMLElement","Element","pageXOffset","pageYOffset","visualViewport","Reflect","Set","Object","navigator","harden","console","WeakSet","Event","Image","fetch","OffscreenCanvas","/cdc_[a-zA-Z0-9]+_[a-zA-Z]+/iu","name","performance","parseFloat","innerWidth","innerHeight","Symbol","Math","DOMRect","Number","Array","crypto","Function","Uint8Array","String","Promise","JSON","Date","__SENTRY__","appState","extra","stateHooks","sentryHooks","sentry","setTimeout","Boolean","URL"]}}
97+
} = {"scuttleGlobalThis":{"enabled":true,"scuttlerName":"SCUTTLER","exceptions":["Proxy","toString","getComputedStyle","addEventListener","removeEventListener","ShadowRoot","HTMLElement","Element","pageXOffset","pageYOffset","visualViewport","Reflect","Set","Object","navigator","harden","console","WeakSet","Event","Image","fetch","OffscreenCanvas","/cdc_[a-zA-Z0-9]+_[a-zA-Z]+/iu","name","performance","parseFloat","innerWidth","innerHeight","Symbol","Math","DOMRect","Number","Array","crypto","Function","Uint8Array","String","Promise","JSON","Date","__SENTRY__","appState","extra","stateHooks","sentryHooks","sentry","setTimeout","Boolean","URL","clients"]}}
9898

9999
function getGlobalRef () {
100100
if (typeof globalThis !== 'undefined') {

public/extensions/MetaMask_v10.22.2/scripts/sentry-install.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/extensions/MetaMask_v10.22.2/ui-12.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/extensions/MetaMask_v10.22.2/vendor/trezor/content-script.js

+20-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,27 @@
11
/*
22
Passing messages from background script to popup
33
*/
4+
let port;
45

5-
let port = chrome.runtime.connect({ name: 'trezor-connect' });
6-
port.onMessage.addListener(message => {
7-
window.postMessage(message, window.location.origin);
8-
});
9-
port.onDisconnect.addListener(d => {
10-
port = null;
11-
});
6+
function init(){
7+
port = chrome.runtime.connect({ name: 'trezor-connect' });
8+
port.onMessage.addListener(message => {
9+
window.postMessage(message, window.location.origin);
10+
});
11+
port.onDisconnect.addListener(d => {
12+
port = null;
13+
});
14+
}
15+
16+
init();
17+
18+
navigator.serviceWorker.oncontrollerchange = () => {
19+
console.log(
20+
"This content script is now controlled by",
21+
navigator.serviceWorker.controller,
22+
);
23+
init();
24+
};
1225

1326
/*
1427
Passing messages from popup to background script

0 commit comments

Comments
 (0)