Skip to content

Commit

Permalink
fix: navigator is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
thePeeyush committed Feb 18, 2024
1 parent 6f85dd3 commit 305a180
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 = navigator ? (["iPad", "iPhone", "iPod"].includes(navigator.platform)) : false;
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 305a180

Please sign in to comment.