commit d7b2753e0b126c0043769f1f30eeaafbae820309
parent 0c3bd38b5b8eb1435197b90a6634212dc74f16ca
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date: Mon, 14 Oct 2024 11:17:40 -0700
Print error to console aswell in etc.error
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/files/lib/etc.js b/files/lib/etc.js
@@ -106,6 +106,8 @@ function keep_authorized() {
}
export function error(message, on) {
+ console.error("etc.error", message)
+
if (!on || !on.parentElement) {
on = document.body
}