1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-08-01 11:00:28 +02:00

notifications: expose alertsService on window

This commit is contained in:
Kushagra Gour
2018-06-19 10:34:38 +05:30
parent 6865b8c562
commit 5966139818

View File

@@ -10,7 +10,7 @@ function addNotification(msg) {
noticationContainerEL.classList.add('is-active'); noticationContainerEL.classList.add('is-active');
clearTimeout(hideTimeout); clearTimeout(hideTimeout);
hideTimeout = setTimeout(function () { hideTimeout = setTimeout(function() {
noticationContainerEL.classList.remove('is-active'); noticationContainerEL.classList.remove('is-active');
}, 2000); }, 2000);
} }
@@ -18,3 +18,4 @@ function addNotification(msg) {
export const alertsService = { export const alertsService = {
add: addNotification add: addNotification
}; };
window.alertsService = alertsService;