From 1618c28a664d0900d012a9c5bd6b9465690dce0b Mon Sep 17 00:00:00 2001 From: Daniel-Cross Date: Mon, 12 Aug 2024 23:05:49 +0200 Subject: [PATCH] removed the paused state as it was unused --- app/components/Views/BrowserTab/index.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/components/Views/BrowserTab/index.js b/app/components/Views/BrowserTab/index.js index 45e0ae3cfd1..6dfc08fbbde 100644 --- a/app/components/Views/BrowserTab/index.js +++ b/app/components/Views/BrowserTab/index.js @@ -267,7 +267,6 @@ export const BrowserTab = (props) => { const [blockedUrl, setBlockedUrl] = useState(undefined); const [ipfsBannerVisible, setIpfsBannerVisible] = useState(false); const [isResolvedIpfsUrl, setIsResolvedIpfsUrl] = useState(false); - const [isWebActivityPaused, setIsWebActivityPaused] = useState(false); const webviewRef = useRef(null); const blockListType = useRef(''); const allowList = useRef([]); @@ -715,13 +714,11 @@ export const BrowserTab = (props) => { webviewRef.current.injectJavaScript(` window.isTabActive = true; `); - setIsWebActivityPaused(false); } else { webviewRef.current.injectJavaScript(` window.isTabActive = false; `); webviewRef.current.stopLoading(); // Stop loading the page - setIsWebActivityPaused(true); } } }, [isFocused]);