From c4a15340e0aaa44751d98b85201e828596fecbd0 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Mon, 11 Jul 2016 15:45:57 -0700 Subject: [PATCH] Add notification global for development The background process now has a global `METAMASK_NOTIFIER` object that allows easy mocking of notification data. --- app/scripts/lib/notifications.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/scripts/lib/notifications.js b/app/scripts/lib/notifications.js index b9d7b79da..354476af2 100644 --- a/app/scripts/lib/notifications.js +++ b/app/scripts/lib/notifications.js @@ -9,11 +9,13 @@ const PendingMsgDetails = require('../../../ui/app/components/pending-msg-detail const MetaMaskUiCss = require('../../../ui/css') var notificationHandlers = {} -module.exports = { +const notifications = { createUnlockRequestNotification: createUnlockRequestNotification, createTxNotification: createTxNotification, createMsgNotification: createMsgNotification, } +module.exports = notifications +window.METAMASK_NOTIFIER = notifications setupListeners()