Skip to content

Commit

Permalink
Merge branch 'main' into feat/1940-add-custom-sentry-span
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioAslau authored Oct 23, 2024
2 parents 1a93300 + cce5d5c commit 9f00e41
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 120 deletions.
14 changes: 0 additions & 14 deletions app/components/Views/BrowserTab/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ import { useMetrics } from '../../../components/hooks/useMetrics';
import { trackDappViewedEvent } from '../../../util/metrics';
import trackErrorAsAnalytics from '../../../util/metrics/TrackError/trackErrorAsAnalytics';
import { selectPermissionControllerState } from '../../../selectors/snaps/permissionController';
import { useIsFocused } from '@react-navigation/native';
import handleWebViewFocus from '../../../util/browser/webViewFocus';
import { isTest } from '../../../util/test/utils.js';
import { EXTERNAL_LINK_TYPE } from '../../../constants/browser';

Expand Down Expand Up @@ -277,11 +275,9 @@ export const BrowserTab = (props) => {
const [blockedUrl, setBlockedUrl] = useState(undefined);
const [ipfsBannerVisible, setIpfsBannerVisible] = useState(false);
const [isResolvedIpfsUrl, setIsResolvedIpfsUrl] = useState(false);
const previousChainIdRef = useRef('0x1');
const webviewRef = useRef(null);
const blockListType = useRef('');
const allowList = useRef([]);
const isFocused = useIsFocused();

const url = useRef('');
const title = useRef('');
Expand Down Expand Up @@ -720,16 +716,6 @@ export const BrowserTab = (props) => {
};
}, [goBack, isTabActive, props.navigation]);

useEffect(() => {
handleWebViewFocus({
webviewRef,
isFocused,
chainId: props.chainId,
previousChainId: previousChainIdRef.current,
});
previousChainIdRef.current = props.chainId;
}, [webviewRef, isFocused, props.chainId]);

/**
* Inject home page scripts to get the favourites and set analytics key
*/
Expand Down
74 changes: 0 additions & 74 deletions app/util/browser/webViewFocus.test.ts

This file was deleted.

32 changes: 0 additions & 32 deletions app/util/browser/webViewFocus.ts

This file was deleted.

0 comments on commit 9f00e41

Please sign in to comment.