diff options
author | brunobar79 <brunobar79@gmail.com> | 2018-07-04 03:41:18 +0800 |
---|---|---|
committer | brunobar79 <brunobar79@gmail.com> | 2018-07-04 03:41:18 +0800 |
commit | 3837c2ddd7b3ea7a301f9296176273ac84d90480 (patch) | |
tree | 6fe1c61c73d6999cd62637e4a0a2fb4eea48617f /app | |
parent | 3290421e2f16bd0ea1b13ba3f3d93fc4d233c750 (diff) | |
parent | e467eda4f720fa89141ded2e709566102402479b (diff) | |
download | tangerine-wallet-browser-3837c2ddd7b3ea7a301f9296176273ac84d90480.tar tangerine-wallet-browser-3837c2ddd7b3ea7a301f9296176273ac84d90480.tar.gz tangerine-wallet-browser-3837c2ddd7b3ea7a301f9296176273ac84d90480.tar.bz2 tangerine-wallet-browser-3837c2ddd7b3ea7a301f9296176273ac84d90480.tar.lz tangerine-wallet-browser-3837c2ddd7b3ea7a301f9296176273ac84d90480.tar.xz tangerine-wallet-browser-3837c2ddd7b3ea7a301f9296176273ac84d90480.tar.zst tangerine-wallet-browser-3837c2ddd7b3ea7a301f9296176273ac84d90480.zip |
fix merge conflicts
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/lib/notification-manager.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/scripts/lib/notification-manager.js b/app/scripts/lib/notification-manager.js index 6b88a7a99..969a9459a 100644 --- a/app/scripts/lib/notification-manager.js +++ b/app/scripts/lib/notification-manager.js @@ -26,15 +26,15 @@ class NotificationManager { // bring focus to existing chrome popup extension.windows.update(popup.id, { focused: true }) } else { + const cb = (currentPopup) => { this._popupId = currentPopup.id } // create new notification popup - extension.windows.create({ + const creation = extension.windows.create({ url: 'notification.html', type: 'popup', width, height, - }).then((currentPopup) => { - this._popupId = currentPopup.id - }) + }, cb) + creation && creation.then && creation.then(cb) } }) } |