Merge pull request #1284 from MetaMask/FixFirefoxPopup

Fix firefox popup
feature/default_network_editable
kumavis 8 years ago committed by GitHub
commit 6f28426a22
  1. 2
      CHANGELOG.md
  2. 5
      app/scripts/lib/extension.js
  3. 4
      app/scripts/lib/notifications.js

@ -2,6 +2,8 @@
## Current Master ## Current Master
- Popup new transactions in Firefox.
## 3.5.2 2017-3-28 ## 3.5.2 2017-3-28
- Fix bug where gas estimate totals were sometimes wrong. - Fix bug where gas estimate totals were sometimes wrong.

@ -11,4 +11,7 @@
*/ */
const Extension = require('./extension-instance') const Extension = require('./extension-instance')
module.exports = new Extension() const instance = new Extension()
window.METAMASK_EXTENSION = instance
module.exports = instance

@ -22,10 +22,12 @@ function show () {
extension.windows.create({ extension.windows.create({
url: 'notification.html', url: 'notification.html',
type: 'popup', type: 'popup',
focused: true,
width, width,
height, height,
}) })
.catch((reason) => {
log.error('failed to create poupup', reason)
})
} }
}) })
} }

Loading…
Cancel
Save