You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: web_src/js/modules/toast.js
+13-6Lines changed: 13 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
import{htmlEscape}from'escape-goat';
2
2
import{svg}from'../svg.js';
3
-
importToastifyfrom'toastify-js';// don't use "async import", because when network error occurs, the "async import" also fails and nothing is shown
3
+
importToastifyfrom'toastify-js';
4
+
import{showElem}from"../utils/dom.js";// don't use "async import", because when network error occurs, the "async import" also fails and nothing is shown
el.remove();// "hideToast" only removes the toast after an unchangeable delay, so we need to remove it immediately to make the "reposition" work with new toasts
0 commit comments