fix: hide static msg div when toast shows, prevent double display
This commit is contained in:
parent
53577b0ea6
commit
c71922a05d
@ -405,6 +405,10 @@
|
||||
}
|
||||
var msg = params.get("msg");
|
||||
var err = params.get("error");
|
||||
if (msg || err) {
|
||||
var staticEl = document.querySelector("main > .msg, main > .error");
|
||||
if (staticEl) staticEl.style.display = "none";
|
||||
}
|
||||
if (msg) showToast(decodeURIComponent(msg), "success");
|
||||
if (err) showToast(decodeURIComponent(err), "error");
|
||||
if (msg || err) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user