Removed theme.js console noise.

This commit is contained in:
hackademix 2023-12-07 19:22:29 +01:00
parent ff7f81d667
commit 2d73fbbee1
No known key found for this signature in database
GPG Key ID: 231A83AFDA9C2434
1 changed files with 2 additions and 2 deletions

View File

@ -46,14 +46,14 @@
if (patchSheet(s)) return true;
} catch (e) {
// cross-site stylesheet?
console.error(e, s.href);
debug(e, s.href); // DEV_ONLY
}
}
return false;
}
if (!patchAll()) {
console.error("Couldn't patch sheets while loading, deferring to onload");
debug("Couldn't patch sheets while loading, deferring to onload"); // DEV_ONLY
let onload = e => {
if (patchAll()) {
removeEventListener(e.type, onload, true);