1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

fix for lint

This commit is contained in:
Jeffrey Tong 2018-03-20 12:18:48 -07:00
parent 4f853bbd3c
commit 93495b2809

View File

@ -40,7 +40,7 @@ const isIE = !!document.documentMode
const isEdge = !isIE && !!window.StyleMedia const isEdge = !isIE && !!window.StyleMedia
let popupIsOpen = false let popupIsOpen = false
let notifcationIsOpen = false; let notificationIsOpen = false
let openMetamaskTabsIDs = {} let openMetamaskTabsIDs = {}
// state persistence // state persistence
@ -139,8 +139,8 @@ function setupController (initState) {
} }
if (remotePort.name === 'notification') { if (remotePort.name === 'notification') {
endOfStream(portStream, () => { endOfStream(portStream, () => {
notifcationIsOpen = false notificationIsOpen = false
}); })
} }
} else { } else {
// communication with page // communication with page
@ -184,8 +184,8 @@ function setupController (initState) {
function triggerUi () { function triggerUi () {
extension.tabs.query({ active: true }, (tabs) => { extension.tabs.query({ active: true }, (tabs) => {
const currentlyActiveMetamaskTab = tabs.find(tab => openMetamaskTabsIDs[tab.id]) const currentlyActiveMetamaskTab = tabs.find(tab => openMetamaskTabsIDs[tab.id])
if (!popupIsOpen && !currentlyActiveMetamaskTab) notificationManager.showPopup(); if (!popupIsOpen && !currentlyActiveMetamaskTab && !notificationIsOpen) notificationManager.showPopup()
notifcationIsOpen = true; notificationIsOpen = true
}) })
} }