Skip to content

Commit e2bd337

Browse files
committed
ADD edge to compatible browsers
1 parent abac58c commit e2bd337

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web/src/components/shared/DeviceWarning.jsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import React from 'react';
2-
import {browserName, isChrome, isDesktop, isFirefox, isTablet} from 'react-device-detect';
2+
import {browserName, isChrome, isEdgeChromium, isDesktop, isFirefox, isTablet} from 'react-device-detect';
33
import {useSnackbar} from 'notistack';
44

55
export default function DeviceWarning() {
66
const {enqueueSnackbar} = useSnackbar();
77

88
React.useEffect(() => {
99
const acceptDevice = isDesktop || isTablet;
10-
const acceptBrowser = isChrome || isFirefox;
10+
const acceptBrowser = isChrome || isFirefox || isEdgeChromium;
1111
if (!acceptBrowser) {
1212
enqueueSnackbar(`We noticed you are on ${browserName}. ` +
1313
'Some things may not work as intended. ' +
14-
'Try Firefox or Chrome if you run into any issues!', {variant: 'warning'});
14+
'Try Firefox, Chrome or Edge if you run into any issues!', {variant: 'warning'});
1515
return;
1616
}
1717
if (!acceptDevice) {

0 commit comments

Comments
 (0)