forked from rDrama/rDrama
1
0
Fork 0

use console.error instead of console.log in bottom.js

master
Aevann 2023-02-21 20:29:32 +02:00
parent e652a9bfd0
commit d649801cc7
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
function execute(element, attr) { function execute(element, attr) {
if (element.dataset.nonce != nonce) { if (element.dataset.nonce != nonce) {
console.log("Nonce check failed!") console.error("Nonce check failed!")
return return
} }
const funcs = element.getAttribute(`data-${attr}`).split(';') const funcs = element.getAttribute(`data-${attr}`).split(';')
@ -15,8 +15,8 @@ function execute(element, attr) {
window[name](...args); window[name](...args);
} }
catch (e) { catch (e) {
console.log(e) console.error(e)
console.log(name) console.error(name)
} }
} }
} }