Skip to content

Commit c850bfb

Browse files
committed
isEdge.
1 parent 0eda159 commit c850bfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const userAgent = navigator.userAgent;
22

33
export const isFirefox = (userAgent.indexOf('Firefox') >= 0);
44
export const isWebKit = (userAgent.indexOf('AppleWebKit') >= 0);
5-
export const isEdge = navigator.userAgent.indexOf("Edg") !== -1);
5+
export const isEdge = navigator.userAgent.indexOf("Edg") >= 0;
66
export const isChromium = (userAgent.indexOf('Chrome') >= 0);
77
export const isSafari = (!isChromium && (userAgent.indexOf('Safari') >= 0));
88
export const isChrome = navigator.userAgent.indexOf("Chrome") !== -1 && navigator.userAgent.indexOf("Edg") === -1;

0 commit comments

Comments
 (0)