Skip to content

Commit

Permalink
Change injectedJavascript to ...BeforeContentLoaded version
Browse files Browse the repository at this point in the history
Works around an Android bug that was causing ERR_ACCESS_DENIED to come up most of the time.
  • Loading branch information
jsubloom committed Sep 8, 2023
1 parent a18a8aa commit 5c7dd0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/mobile/src/WebviewHost.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ export const WebviewHost: FunctionComponent = (props) => {
ref={(ref) => (webviewRef.current = ref)}
style={styles.webViewStyles}
source={{ uri }}
injectedJavaScript={
// injectedJavaScript={
injectedJavaScriptBeforeContentLoaded={
WebviewUtil.JavaScriptInjections.PostMessageWorkaround +
WebviewUtil.JavaScriptInjections
.PassConsoleLoggingToNative +
Expand Down

0 comments on commit 5c7dd0a

Please sign in to comment.