fix dialog
This commit is contained in:
parent
6ea10631b0
commit
c33e506078
7
main.js
7
main.js
@ -977,13 +977,16 @@
|
|||||||
dialog.id = "dialog"
|
dialog.id = "dialog"
|
||||||
document.body.appendChild(dialog)
|
document.body.appendChild(dialog)
|
||||||
|
|
||||||
dialog.addEventListener("click", (e) => {
|
dialog.addEventListener("click", e => {
|
||||||
if (e.target == dialog) {
|
if (e.target == dialog) {
|
||||||
e.target.close()
|
e.target.close()
|
||||||
e.target.innerHTML = ""
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
dialog.addEventListener("close", e => {
|
||||||
|
e.target.innerHTML = ""
|
||||||
|
})
|
||||||
|
|
||||||
/* PRETTIFY CHECKBOX */
|
/* PRETTIFY CHECKBOX */
|
||||||
|
|
||||||
if (localStorage.getItem("always")) {
|
if (localStorage.getItem("always")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user