mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Close an open toast before opening a new one
This commit is contained in:
@@ -44,8 +44,10 @@
|
||||
|
||||
static showNotification(text) {
|
||||
const toast = document.getElementById('toast');
|
||||
toast.text = text;
|
||||
toast.show();
|
||||
if (toast.opened) {
|
||||
toast.hide();
|
||||
}
|
||||
toast.show(text);
|
||||
}
|
||||
};
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user