Log: Improve log experience on Firefox (which auto-expands dirs)

This commit is contained in:
Jade Macho 2025-01-14 22:17:18 +01:00
parent 3fe67c37b2
commit 0a0b140dd2
Signed by: 0x0ade
GPG key ID: E1960710FE4FBEEF
2 changed files with 5 additions and 1 deletions

View file

@ -2,6 +2,8 @@
import JadefinIntegrity from "./JadefinIntegrity.js";
import JadefinUtils from "./JadefinUtils.js";
import cyrb53a from "./utils/cyrb53.js";
export default JadefinIntegrity("JadefinLog", import.meta.url, () => class JadefinLog {
@ -64,7 +66,7 @@ export default JadefinIntegrity("JadefinLog", import.meta.url, () => class Jadef
return this;
}
if (args.length == 1) {
if (args.length == 1 && !JadefinUtils.isFF) {
if (args[0] instanceof Error) {
console.error(args[0]);
} else {

View file

@ -16,6 +16,8 @@ export default JadefinIntegrity("JadefinUtils", import.meta.url, () => window["J
/** @type {any} */
htmlVideoPlayer = null;
isFF = globalThis.navigator?.userAgent.toLowerCase().includes("firefox") || false;
get isInMovie() {
return !!document.querySelector(".osdHeader");
}