diff options
author | Jeffrey Tong <trigun0x2@gmail.com> | 2018-03-21 03:18:48 +0800 |
---|---|---|
committer | Jeffrey Tong <trigun0x2@gmail.com> | 2018-03-21 03:18:48 +0800 |
commit | 93495b28098701e5558052b7f39c39993dc64911 (patch) | |
tree | 0ba5b060203eb2cc8d615c5ece2bfb35168af4ea | |
parent | 4f853bbd3c374df7c2991d5fdf91112f6f319bb3 (diff) | |
download | tangerine-wallet-browser-93495b28098701e5558052b7f39c39993dc64911.tar tangerine-wallet-browser-93495b28098701e5558052b7f39c39993dc64911.tar.gz tangerine-wallet-browser-93495b28098701e5558052b7f39c39993dc64911.tar.bz2 tangerine-wallet-browser-93495b28098701e5558052b7f39c39993dc64911.tar.lz tangerine-wallet-browser-93495b28098701e5558052b7f39c39993dc64911.tar.xz tangerine-wallet-browser-93495b28098701e5558052b7f39c39993dc64911.tar.zst tangerine-wallet-browser-93495b28098701e5558052b7f39c39993dc64911.zip |
fix for lint
-rw-r--r-- | app/scripts/background.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/scripts/background.js b/app/scripts/background.js index 679c2a4e2..53b67f294 100644 --- a/app/scripts/background.js +++ b/app/scripts/background.js @@ -40,7 +40,7 @@ const isIE = !!document.documentMode const isEdge = !isIE && !!window.StyleMedia let popupIsOpen = false -let notifcationIsOpen = false; +let notificationIsOpen = false let openMetamaskTabsIDs = {} // state persistence @@ -139,8 +139,8 @@ function setupController (initState) { } if (remotePort.name === 'notification') { endOfStream(portStream, () => { - notifcationIsOpen = false - }); + notificationIsOpen = false + }) } } else { // communication with page @@ -184,8 +184,8 @@ function setupController (initState) { function triggerUi () { extension.tabs.query({ active: true }, (tabs) => { const currentlyActiveMetamaskTab = tabs.find(tab => openMetamaskTabsIDs[tab.id]) - if (!popupIsOpen && !currentlyActiveMetamaskTab) notificationManager.showPopup(); - notifcationIsOpen = true; + if (!popupIsOpen && !currentlyActiveMetamaskTab && !notificationIsOpen) notificationManager.showPopup() + notificationIsOpen = true }) } |