groups:Remove useEffect for setting prot. handler from Content
@@ -2,7 +2,6 @@ import { Box } from '@tlon/indigo-react';
import React, { Suspense, useCallback, useEffect } from 'react';
import { Route, Switch, useHistory, useLocation } from 'react-router-dom';
import styled from 'styled-components';
-import { useLocalStorageState } from '~/logic/lib/useLocalStorageState';
import { PermalinkRoutes } from '~/views/apps/permalinks/app';
import { useShortcut } from '~/logic/state/settings';
import { Loading } from '~/views/components/Loading';
@@ -57,22 +56,6 @@ export const Content = () => {
history.goBack();
}, [history.goBack]));
- const [hasProtocol, setHasProtocol] = useLocalStorageState(
- 'registeredProtocol', false
- );
-
- useEffect(() => {
- if(!hasProtocol && window?.navigator?.registerProtocolHandler) {
- try {
- window.navigator.registerProtocolHandler('web+urbitgraph', '/perma?ext=%s', 'Urbit Links');
- console.log('registered protocol');
- setHasProtocol(true);
- } catch (e) {
- console.log(e);
- }
- }
- }, [hasProtocol]);
-
return (
<Container>
<Suspense fallback={Loading}>
