Skip to content

Commit

Permalink
fix: navigator is not defined. (#1202)
Browse files Browse the repository at this point in the history
Closes #1165
  • Loading branch information
thePeeyush committed May 11, 2024
1 parent 3fb31b3 commit 4b7a74d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/supports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4b7a74d

Please sign in to comment.