diff --git a/src/utils/configUtils.ts b/src/utils/configUtils.ts index db957caa47..0afecbc117 100644 --- a/src/utils/configUtils.ts +++ b/src/utils/configUtils.ts @@ -6,7 +6,7 @@ export function showDonationLink(): boolean { } export function isSafari(): boolean { - return navigator.vendor === "Apple Computer, Inc."; + return typeof(navigator) !== "undefined" && navigator.vendor === "Apple Computer, Inc."; } export function keybindEquals(first: Keybind, second: Keybind): boolean {