aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/help.ts
diff options
context:
space:
mode:
authorÁron Hegymegi-Kiss <[email protected]>2022-01-13 19:13:08 +0100
committerÁron Hegymegi-Kiss <[email protected]>2022-01-13 19:13:08 +0100
commit881cea4f6d357bea4365c52727145df5472fd30b (patch)
tree48dd86171852635339d3be583170e038dbf361dd /src/help.ts
parent5dd78e1cb388327b2a9b2100e5cf9ebe91ba63f7 (diff)
downloadSponsorBlock-881cea4f6d357bea4365c52727145df5472fd30b.tar.gz
SponsorBlock-881cea4f6d357bea4365c52727145df5472fd30b.zip
refine settings usragent check
Diffstat (limited to 'src/help.ts')
-rw-r--r--src/help.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/help.ts b/src/help.ts
index 9e1027db..4c101c64 100644
--- a/src/help.ts
+++ b/src/help.ts
@@ -13,7 +13,8 @@ async function init() {
if (window.matchMedia("(prefers-color-scheme: light)")?.matches &&
!(navigator.vendor == "Google Inc." && (navigator.userAgent.includes("Linux") ||
navigator.userAgent.includes("Windows NT 6") ||
- navigator.userAgent.includes("Mac OS X") && navigator.userAgent.match(/Mac OS X [^)]+/)[0] < "Mac OS X 10_14")))
+ navigator.userAgent.includes("Mac OS X") && navigator.userAgent.match(/Mac OS X [^)]+/)[0] < "Mac OS X 10_14") &&
+ !navigator.userAgent.includes("OPR/") && !navigator.userAgent.includes("Edg/")))
document.documentElement.setAttribute("data-theme", "light");
await utils.wait(() => Config.config !== null);