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

fix illegal return statement :(

This commit is contained in:
kumavis 2016-06-02 17:29:49 -07:00
parent c04d33c6a5
commit 90f494c9a1

View File

@ -8,6 +8,10 @@ module.exports = {
createMsgNotification: createMsgNotification, createMsgNotification: createMsgNotification,
} }
setupListeners()
function setupListeners(){
// guard for chrome bug https://github.com/MetaMask/metamask-plugin/issues/236 // guard for chrome bug https://github.com/MetaMask/metamask-plugin/issues/236
if (!chrome.notifications) return console.error('Chrome notifications API missing...') if (!chrome.notifications) return console.error('Chrome notifications API missing...')
@ -27,6 +31,8 @@ chrome.notifications.onClosed.addListener(function(notificationId){
delete notificationHandlers[notificationId] delete notificationHandlers[notificationId]
}) })
}
// creation helper // creation helper
function createUnlockRequestNotification(opts){ function createUnlockRequestNotification(opts){
// guard for chrome bug https://github.com/MetaMask/metamask-plugin/issues/236 // guard for chrome bug https://github.com/MetaMask/metamask-plugin/issues/236