Skip to content

Commit

Permalink
Merge branch 'navigator-not-defined' into rc
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasgloning committed Apr 27, 2024
2 parents 3b5e9e8 + 305a180 commit e9de8b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/supports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ 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;
Expand Down

0 comments on commit e9de8b3

Please sign in to comment.