mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
re-enabled x-metamask-origin for mascara
This commit is contained in:
parent
4979f5902f
commit
b24e16d346
@ -196,7 +196,7 @@ module.exports = class MetamaskController extends EventEmitter {
|
|||||||
},
|
},
|
||||||
// rpc data source
|
// rpc data source
|
||||||
rpcUrl: this.networkController.getCurrentRpcAddress(),
|
rpcUrl: this.networkController.getCurrentRpcAddress(),
|
||||||
originHttpHeaderKey: this.platform.isExtension ? 'X-Metamask-Origin' : undefined,
|
originHttpHeaderKey: 'X-Metamask-Origin',
|
||||||
// account mgmt
|
// account mgmt
|
||||||
getAccounts: (cb) => {
|
getAccounts: (cb) => {
|
||||||
const isUnlocked = this.keyringController.memStore.getState().isUnlocked
|
const isUnlocked = this.keyringController.memStore.getState().isUnlocked
|
||||||
|
@ -5,10 +5,6 @@ class ExtensionPlatform {
|
|||||||
//
|
//
|
||||||
// Public
|
// Public
|
||||||
//
|
//
|
||||||
get isExtension () {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
reload () {
|
reload () {
|
||||||
extension.runtime.reload()
|
extension.runtime.reload()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user