Skip to content

Commit

Permalink
execute web3 provider init only after DOM is finished loading
Browse files Browse the repository at this point in the history
  • Loading branch information
jpcloureiro committed Dec 15, 2023
1 parent a0d2bd5 commit 6f3bfe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/Views/BrowserTab/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1485,7 +1485,7 @@ export const BrowserTab = (props) => {
<WebviewError error={error} returnHome={returnHome} />
)}
source={{ uri: initialUrl }}
injectedJavaScriptBeforeContentLoaded={entryScriptWeb3}
injectedJavaScriptBeforeContentLoaded={`window.self.document.addEventListener("DOMContentLoaded", function() {${entryScriptWeb3}});`}
style={styles.webview}
onLoadStart={onLoadStart}
onLoad={onLoad}
Expand Down

0 comments on commit 6f3bfe2

Please sign in to comment.