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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user