1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-03-21 19:19:40 +01: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');
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;