We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 39295af + 5b51b6d commit 2ecc1e7Copy full SHA for 2ecc1e7
src/dom.ts
@@ -4,6 +4,9 @@ import { refKey } from "./utils";
4
* @internal
5
*/
6
export const isSafari = (): boolean => {
7
+ if (typeof navigator === "undefined") {
8
+ return false;
9
+ }
10
const ua = navigator.userAgent.toLowerCase();
11
return ua.indexOf("safari") > -1 && ua.indexOf("chrome") <= -1;
12
};
0 commit comments