diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-07-12 06:45:57 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-07-12 06:45:57 +0800 |
commit | c4a15340e0aaa44751d98b85201e828596fecbd0 (patch) | |
tree | 2832dc59716d1a1cb44331e6a240a96e38e80ee4 /app | |
parent | 8cfa21c1e9be3b24bd14e35c79dc1e57aea2d241 (diff) | |
download | tangerine-wallet-browser-c4a15340e0aaa44751d98b85201e828596fecbd0.tar tangerine-wallet-browser-c4a15340e0aaa44751d98b85201e828596fecbd0.tar.gz tangerine-wallet-browser-c4a15340e0aaa44751d98b85201e828596fecbd0.tar.bz2 tangerine-wallet-browser-c4a15340e0aaa44751d98b85201e828596fecbd0.tar.lz tangerine-wallet-browser-c4a15340e0aaa44751d98b85201e828596fecbd0.tar.xz tangerine-wallet-browser-c4a15340e0aaa44751d98b85201e828596fecbd0.tar.zst tangerine-wallet-browser-c4a15340e0aaa44751d98b85201e828596fecbd0.zip |
Add notification global for development
The background process now has a global `METAMASK_NOTIFIER` object that allows easy mocking of notification data.
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/lib/notifications.js | 4 |
1 files changed, 3 insertions, 1 deletions
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() |