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]);