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:
parent
6865b8c562
commit
5966139818
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user