Fix tests

This commit is contained in:
Ajay 2023-02-01 19:55:01 -05:00
parent 6348bdccde
commit b2e6e4f076

View file

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