Add extra edge compatibility

This commit is contained in:
Dan Finlay 2016-08-29 17:33:18 -07:00
parent b36b760338
commit 1b617402ec
1 changed files with 13 additions and 2 deletions

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