diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-03-30 01:40:57 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-03-30 01:40:57 +0800 |
commit | 610ec2bdf5841c8275073992e67c59fb47faa48c (patch) | |
tree | 2516a4375f7781550280b63aa0077259780ce34c /app | |
parent | 13ec2aaa12537a16e5411b8e1d23845fc648c0d4 (diff) | |
download | tangerine-wallet-browser-610ec2bdf5841c8275073992e67c59fb47faa48c.tar tangerine-wallet-browser-610ec2bdf5841c8275073992e67c59fb47faa48c.tar.gz tangerine-wallet-browser-610ec2bdf5841c8275073992e67c59fb47faa48c.tar.bz2 tangerine-wallet-browser-610ec2bdf5841c8275073992e67c59fb47faa48c.tar.lz tangerine-wallet-browser-610ec2bdf5841c8275073992e67c59fb47faa48c.tar.xz tangerine-wallet-browser-610ec2bdf5841c8275073992e67c59fb47faa48c.tar.zst tangerine-wallet-browser-610ec2bdf5841c8275073992e67c59fb47faa48c.zip |
Fix popup behavior for Firefox
Firefox does not support the `focused` parameter when opening a new window, and we don't actually require it for Chrome either, new popups are at the foreground by default already.
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/lib/extension.js | 5 | ||||
-rw-r--r-- | app/scripts/lib/notifications.js | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/app/scripts/lib/extension.js b/app/scripts/lib/extension.js index 4b670490f..6f8b5d800 100644 --- a/app/scripts/lib/extension.js +++ b/app/scripts/lib/extension.js @@ -11,4 +11,7 @@ */ const Extension = require('./extension-instance') -module.exports = new Extension() +const instance = new Extension() +window.METAMASK_EXTENSION = instance +module.exports = instance + diff --git a/app/scripts/lib/notifications.js b/app/scripts/lib/notifications.js index 3db1ac6b5..33914846c 100644 --- a/app/scripts/lib/notifications.js +++ b/app/scripts/lib/notifications.js @@ -22,10 +22,12 @@ function show () { extension.windows.create({ url: 'notification.html', type: 'popup', - focused: true, width, height, }) + .catch((reason) => { + log.error("failed to create poupup", reason) + }) } }) } |