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.
1 parent 0eda159 commit c850bfbCopy full SHA for c850bfb
src/browser.ts
@@ -2,7 +2,7 @@ const userAgent = navigator.userAgent;
2
3
export const isFirefox = (userAgent.indexOf('Firefox') >= 0);
4
export const isWebKit = (userAgent.indexOf('AppleWebKit') >= 0);
5
-export const isEdge = navigator.userAgent.indexOf("Edg") !== -1);
+export const isEdge = navigator.userAgent.indexOf("Edg") >= 0;
6
export const isChromium = (userAgent.indexOf('Chrome') >= 0);
7
export const isSafari = (!isChromium && (userAgent.indexOf('Safari') >= 0));
8
export const isChrome = navigator.userAgent.indexOf("Chrome") !== -1 && navigator.userAgent.indexOf("Edg") === -1;
0 commit comments