Skip to content

Commit

Permalink
Implement Active Tab flag for dapp browser (#6279)
Browse files Browse the repository at this point in the history
* testing behavior of javascriptEnabled

* use setActive method on webview
  • Loading branch information
brunobar79 authored Dec 2, 2024
1 parent f61e33b commit edcf077
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/DappBrowser/BrowserTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,10 @@ const FreezableWebViewComponent = ({
if (webViewRef?.current) {
if (isActiveTab) {
webViewRef.current.injectJavaScript(unfreezeWebsite);
webViewRef.current.setActive(true);
} else {
webViewRef.current.injectJavaScript(freezeWebsite);
webViewRef.current.setActive(false);
}
}
}, [isActiveTab, webViewRef]);
Expand Down

0 comments on commit edcf077

Please sign in to comment.