forked from MetaMask/metamask-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin' into feature/ngrave-copy
- Loading branch information
Showing
270 changed files
with
14,709 additions
and
4,390 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
.yarn/patches/@trezor-connect-web-npm-9.2.2-a4de8e45fc.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
diff --git a/lib/index.js b/lib/index.js | ||
index 82a21b70dc18597fdbb1c5bfdbebb10f615c723d..04edf4b3a8a5a2bebda8bf907225b502ab5c30ad 100644 | ||
--- a/lib/index.js | ||
+++ b/lib/index.js | ||
@@ -109,7 +109,9 @@ const init = async (settings = {}) => { | ||
_log.enabled = !!_settings.debug; | ||
window.addEventListener('message', handleMessage); | ||
window.addEventListener('unload', dispose); | ||
- await iframe.init(_settings); | ||
+ var modifiedSettings = Object.assign({}, _settings); | ||
+ modifiedSettings.env = 'webextension'; | ||
+ await iframe.init(modifiedSettings); | ||
if (_settings.sharedLogger !== false) { | ||
iframe.initIframeLogger(); | ||
} | ||
@@ -125,7 +127,9 @@ const call = async (params) => { | ||
} | ||
_popupManager.request(); | ||
try { | ||
- await init(_settings); | ||
+ var modifiedSettings = Object.assign({}, _settings); | ||
+ modifiedSettings.env = 'webextension'; | ||
+ await init(modifiedSettings); | ||
} | ||
catch (error) { | ||
if (_popupManager) { | ||
diff --git a/lib/popup/index.js b/lib/popup/index.js | ||
index 6948bdb73b381bb72fb8b87fe2006d0046b65acb..d8f80f77728a18a851da3f03a5ed956cb46fe8e6 100644 | ||
--- a/lib/popup/index.js | ||
+++ b/lib/popup/index.js | ||
@@ -272,9 +272,11 @@ class PopupManager extends events_1.default { | ||
this.popupPromise.resolve(); | ||
} | ||
(_b = this.iframeHandshakePromise) === null || _b === void 0 ? void 0 : _b.promise.then(payload => { | ||
+ var modifiedSettings = Object.assign({}, this.settings); | ||
+ modifiedSettings.env = 'webextension'; | ||
this.channel.postMessage({ | ||
type: events_2.POPUP.INIT, | ||
- payload: Object.assign(Object.assign({}, payload), { settings: this.settings }), | ||
+ payload: Object.assign(Object.assign({}, payload), { settings: modifiedSettings }), | ||
}); | ||
}); | ||
} |
2 changes: 1 addition & 1 deletion
2
...r-schema-utils-npm-1.0.1-70c2a68232.patch → ...r-schema-utils-npm-1.0.2-7dd48689b2.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/package.json b/package.json | ||
index 0f83178c00d4168f35241589d2e77c8a874ed4bd..f0ff8911f5366f9cb05c64e73fe38c4b3e9a74a7 100644 | ||
--- a/package.json | ||
+++ b/package.json | ||
@@ -4,7 +4,6 @@ | ||
"description": "A very small TypeScript library that provides tolerable Mixin functionality.", | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/esm/index.js", | ||
- "browser": "dist/esm/index.js", | ||
"unpkg": "dist/esm/index.min.js", | ||
"types": "dist/types/index.d.ts", | ||
"files": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.