aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/configUtils.ts
diff options
context:
space:
mode:
authorAjay <[email protected]>2022-02-09 15:28:02 -0500
committerAjay <[email protected]>2022-02-09 15:28:02 -0500
commitc9903b592669383cda2a17d3c4e95e41c60e1b00 (patch)
tree046b6f9f8e2ee7a02dcbe2f948afe0dbfcdcd996 /src/utils/configUtils.ts
parentdb7251cbfb533edcef82588d59ea5fec4fc2d396 (diff)
downloadSponsorBlock-c9903b592669383cda2a17d3c4e95e41c60e1b00.tar.gz
SponsorBlock-c9903b592669383cda2a17d3c4e95e41c60e1b00.zip
Don't use setinterval on safari
Diffstat (limited to 'src/utils/configUtils.ts')
-rw-r--r--src/utils/configUtils.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils/configUtils.ts b/src/utils/configUtils.ts
index e0939858..db957caa 100644
--- a/src/utils/configUtils.ts
+++ b/src/utils/configUtils.ts
@@ -5,6 +5,10 @@ export function showDonationLink(): boolean {
return navigator.vendor !== "Apple Computer, Inc." && Config.config.showDonationLink;
}
+export function isSafari(): boolean {
+ return navigator.vendor === "Apple Computer, Inc.";
+}
+
export function keybindEquals(first: Keybind, second: Keybind): boolean {
if (first == null || second == null ||
Boolean(first.alt) != Boolean(second.alt) || Boolean(first.ctrl) != Boolean(second.ctrl) || Boolean(first.shift) != Boolean(second.shift) ||