forked from rDrama/rDrama
use console.error instead of console.log in bottom.js
parent
e652a9bfd0
commit
d649801cc7
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue