diff --git a/lib/supports.ts b/lib/supports.ts index 902b61aed..94911b27a 100644 --- a/lib/supports.ts +++ b/lib/supports.ts @@ -5,7 +5,7 @@ const webRTCAdapter: typeof webRTCAdapter_import = webRTCAdapter_import.default || webRTCAdapter_import; export const Supports = new (class { - readonly isIOS = ["iPad", "iPhone", "iPod"].includes(navigator.platform); + readonly isIOS = typeof navigator !== "undefined" ? (["iPad", "iPhone", "iPod"].includes(navigator.platform)) : false; readonly supportedBrowsers = ["firefox", "chrome", "safari"]; readonly minFirefoxVersion = 59;