Skip to content

Commit

Permalink
removed the paused state as it was unused
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-Cross committed Aug 12, 2024
1 parent 998e8f4 commit 1618c28
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/components/Views/BrowserTab/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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([]);
Expand Down Expand Up @@ -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]);
Expand Down

0 comments on commit 1618c28

Please sign in to comment.