Log: Improve log experience on Firefox (which auto-expands dirs)
This commit is contained in:
parent
3fe67c37b2
commit
0a0b140dd2
2 changed files with 5 additions and 1 deletions
|
@ -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 {
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue