From cd13041b31fb5e63133b450271d5872a3cd316b5 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Wed, 2 Dec 2015 16:35:16 +0000 Subject: [PATCH] Make the X on the desktop notification bar work again See vector-im/vector-web #464 for more info. --- src/Notifier.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Notifier.js b/src/Notifier.js index 66e96fb15c..307c91f457 100644 --- a/src/Notifier.js +++ b/src/Notifier.js @@ -29,7 +29,7 @@ var dis = require("./dispatcher"); * } */ -module.exports = { +var Notifier = { notificationMessageForEvent: function(ev) { return TextForEvent.textForEvent(ev); @@ -190,3 +190,8 @@ module.exports = { } }; +if (!global.mxNotifier) { + global.mxNotifier = Notifier; +} + +module.exports = global.mxNotifier; \ No newline at end of file