From 59661398188a27cbd546d7c3b606c8b9ce822a3b Mon Sep 17 00:00:00 2001 From: Kushagra Gour Date: Tue, 19 Jun 2018 10:34:38 +0530 Subject: [PATCH] notifications: expose alertsService on window --- src/notifications.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/notifications.js b/src/notifications.js index b41f30e..3a1c13e 100644 --- a/src/notifications.js +++ b/src/notifications.js @@ -10,7 +10,7 @@ function addNotification(msg) { noticationContainerEL.classList.add('is-active'); clearTimeout(hideTimeout); - hideTimeout = setTimeout(function () { + hideTimeout = setTimeout(function() { noticationContainerEL.classList.remove('is-active'); }, 2000); } @@ -18,3 +18,4 @@ function addNotification(msg) { export const alertsService = { add: addNotification }; +window.alertsService = alertsService;