From e2bd33763f7587ad5c79de0eed1744db1b7e1dea Mon Sep 17 00:00:00 2001 From: Joe Date: Sat, 17 Feb 2024 13:11:56 -0500 Subject: [PATCH] ADD edge to compatible browsers --- web/src/components/shared/DeviceWarning.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/components/shared/DeviceWarning.jsx b/web/src/components/shared/DeviceWarning.jsx index 5c5183a35..1cc1315e6 100644 --- a/web/src/components/shared/DeviceWarning.jsx +++ b/web/src/components/shared/DeviceWarning.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import {browserName, isChrome, isDesktop, isFirefox, isTablet} from 'react-device-detect'; +import {browserName, isChrome, isEdgeChromium, isDesktop, isFirefox, isTablet} from 'react-device-detect'; import {useSnackbar} from 'notistack'; export default function DeviceWarning() { @@ -7,11 +7,11 @@ export default function DeviceWarning() { React.useEffect(() => { const acceptDevice = isDesktop || isTablet; - const acceptBrowser = isChrome || isFirefox; + const acceptBrowser = isChrome || isFirefox || isEdgeChromium; if (!acceptBrowser) { enqueueSnackbar(`We noticed you are on ${browserName}. ` + 'Some things may not work as intended. ' + - 'Try Firefox or Chrome if you run into any issues!', {variant: 'warning'}); + 'Try Firefox, Chrome or Edge if you run into any issues!', {variant: 'warning'}); return; } if (!acceptDevice) {