@@ -20,6 +20,9 @@ import light from '@tlon/indigo-light';
2020
2121import WithErrorBoundary from 'components/WithErrorBoundary';
2222import GlobalErrorBoundary from 'components/GlobalErrorBoundary';
23+import { useBrowser } from 'lib/useBrowser';
24+import { BrowserWarning } from 'components/BrowserWarning';
25+
2326import Modal from 'components/L2/Modal';
2427import { useRollerStore } from 'store/rollerStore';
2528import { Box } from '@tlon/indigo-react';
@@ -29,8 +32,8 @@ import { useRollerPoller } from 'lib/useRollerPoller';
2932const INITIAL_NETWORK_TYPE = isGoerli
3033 ? NETWORK_TYPES.GOERLI
3134 : isDevelopment && !isMainnet
32− ? NETWORK_TYPES.LOCAL
33− : NETWORK_TYPES.MAINNET;
35+ ? NETWORK_TYPES.LOCAL
36+ : NETWORK_TYPES.MAINNET;
3437
3538// NB(shrugs): modify these variables to change the default local state.
3639const SHOULD_STUB_LOCAL = import.meta.env.VITE_STUB_LOCAL === 'true';
@@ -38,9 +41,9 @@ const IS_STUBBED = isDevelopment && SHOULD_STUB_LOCAL;
3841
3942const INITIAL_WALLET = IS_STUBBED
4043 ? walletFromMnemonic(
41− import.meta.env.VITE_DEV_MNEMONIC as string,
42− import.meta.env.VITE_HD_PATH as string
43− )
44+ import.meta.env.VITE_DEV_MNEMONIC as string,
45+ import.meta.env.VITE_HD_PATH as string
46+ )
4447 : undefined;
4548const INITIAL_MNEMONIC = IS_STUBBED
4649 ? Just(import.meta.env.VITE_DEV_MNEMONIC)
@@ -82,6 +85,9 @@ function Bridge() {
8285 const initialRoutes = useInitialRoutes();
8386 const { loading, modalText, setModalText } = useRollerStore();
8487
88+ const browser = useBrowser();
89+ const showBrowserWarning = browser && !browser.isChromium;
90+
8591 // full reload if the user changes their selected network in Metamask
8692 //
8793 useEffect(() => {
@@ -103,6 +109,7 @@ function Bridge() {
103109 initialWallet={INITIAL_WALLET}
104110 initialMnemonic={INITIAL_MNEMONIC}
105111 initialPointCursor={INITIAL_POINT_CURSOR}>
112+ <BrowserWarning show={!!showBrowserWarning} />
106113 <IndigoApp>
107114 <ThemeProvider theme={light}>
108115 <Router />