Skip to content

Commit 1b24e47

Browse files
authored
Merge pull request #110 from liamuk/patch-1
Make isEdgeChromium work for all operating systems
2 parents c777822 + 6f5e307 commit 1b24e47

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/components/helpers/selectors.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@ const isMobileAndTabletType = () => {
1515
};
1616

1717
const isEdgeChromiumType = () => {
18-
if (os.name === OS_TYPES.WINDOWS && os.version === '10') {
19-
return typeof ua === 'string' && ua.indexOf('Edg/') !== -1;
20-
}
21-
22-
return false;
18+
return typeof ua === 'string' && ua.indexOf('Edg/') !== -1;
2319
};
2420

2521
const isSmartTVType = () => device.type === DEVICE_TYPES.SMART_TV;

0 commit comments

Comments
 (0)