aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2016-09-14 06:39:44 +0800
committerGitHub <noreply@github.com>2016-09-14 06:39:44 +0800
commit9e2d4d2bc935243411eb557aab40cbd1081b833f (patch)
treecef827b85980374387519a7a69c9439bb716db3f /app
parent4b880b87bce94c1268401e53b6d7971249311d62 (diff)
parentd05dfc4eedaeb9000693748ab668479b392f3228 (diff)
downloadtangerine-wallet-browser-9e2d4d2bc935243411eb557aab40cbd1081b833f.tar
tangerine-wallet-browser-9e2d4d2bc935243411eb557aab40cbd1081b833f.tar.gz
tangerine-wallet-browser-9e2d4d2bc935243411eb557aab40cbd1081b833f.tar.bz2
tangerine-wallet-browser-9e2d4d2bc935243411eb557aab40cbd1081b833f.tar.lz
tangerine-wallet-browser-9e2d4d2bc935243411eb557aab40cbd1081b833f.tar.xz
tangerine-wallet-browser-9e2d4d2bc935243411eb557aab40cbd1081b833f.tar.zst
tangerine-wallet-browser-9e2d4d2bc935243411eb557aab40cbd1081b833f.zip
Merge branch 'master' into library
Diffstat (limited to 'app')
-rw-r--r--app/scripts/lib/notifications.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/app/scripts/lib/notifications.js b/app/scripts/lib/notifications.js
index 4e3f7558c..422f46f6d 100644
--- a/app/scripts/lib/notifications.js
+++ b/app/scripts/lib/notifications.js
@@ -1,4 +1,6 @@
const extension = require('./extension')
+const height = 500
+const width = 360
const notifications = {
show,
@@ -24,8 +26,8 @@ function show () {
url: 'notification.html',
type: 'popup',
focused: true,
- width: 360,
- height: 500,
+ width,
+ height,
})
}
@@ -51,7 +53,11 @@ function getPopup(cb) {
}
function getPopupIn(windows) {
- return windows ? windows.find((win) => win.type === 'popup') : null
+ return windows ? windows.find((win) => {
+ return (win && win.type === 'popup' &&
+ win.height === height &&
+ win.width === width)
+ }) : null
}
function closePopup() {