Don't use setinterval on safari

This commit is contained in:
Ajay
2022-02-09 15:28:02 -05:00
parent db7251cbfb
commit c9903b5926
2 changed files with 6 additions and 2 deletions

View File

@@ -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) ||