Add notification global for development

The background process now has a global `METAMASK_NOTIFIER` object that allows easy mocking of notification data.
feature/default_network_editable
Dan Finlay 8 years ago
parent 8cfa21c1e9
commit c4a15340e0
  1. 4
      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()

Loading…
Cancel
Save