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

Add notification global for development

The background process now has a global `METAMASK_NOTIFIER` object that allows easy mocking of notification data.
This commit is contained in:
Dan Finlay 2016-07-11 15:45:57 -07:00
parent 8cfa21c1e9
commit c4a15340e0

View File

@ -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()