forked from rDrama/rDrama
1
0
Fork 0

fix console error

master
Aevann 2024-02-13 16:41:11 +02:00
parent 16c3d9c89c
commit 9d7aae2a18
1 changed files with 5 additions and 4 deletions

View File

@ -259,14 +259,15 @@ document.addEventListener("click", function (e) {
}
if (!element.classList.contains("areyousure")) {
if (element.dataset.nonce != nonce) { //to stop the oldhtml attribute from being used as a vector for html injections
console.error("Nonce check failed!")
return
}
document.querySelectorAll(".areyousure").forEach(i => {
if (element.dataset.bsTarget == "#awardModal" && i.classList.contains('awardbtn'))
return
if (i.dataset.nonce != nonce) { //to stop the oldhtml attribute from being used as a vector for html injections
console.error("Nonce check failed!")
return
}
i.classList.remove("areyousure")
if (i.dataset.oldvalue)