1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 10:30:04 +01:00

Add extra edge compatibility

This commit is contained in:
Dan Finlay 2016-08-29 17:33:18 -07:00
parent b36b760338
commit 1b617402ec

View File

@ -46,12 +46,23 @@ function Extension () {
_this[api] = browser[api]
}
} catch (e) {}
try {
_this.api = browser.extension[api]
} catch (e) {}
})
try {
if (browser && browser.runtime) {
this.runtime = browser.runtime
}
} catch (e) {}
try {
if (browser && browser.browserAction) {
this.browserAction = browser.browserAction
}
} catch (e) {}
}
module.exports = Extension