Skip to content

Commit

Permalink
feat: change strada script
Browse files Browse the repository at this point in the history
  • Loading branch information
pklatka committed Apr 29, 2024
1 parent 18e8634 commit d855b2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/turbo/src/hooks/useStradaBridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const useStradaBridge = (
dispatchCommand(
visitableViewRef,
'injectJavaScript',
`window.nativeBridge.replyWith('${JSON.stringify(message)}')`
`window.nativeBridge.replyWith(${JSON.stringify(message)})`
),
[dispatchCommand, visitableViewRef]
);
Expand Down
2 changes: 1 addition & 1 deletion packages/turbo/src/utils/stradaBridgeScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const stradaBridgeScript = `
// Reply to web with message
replyWith(message) {
if (this.isStradaAvailable) {
this.webBridge.receive(JSON.parse(message));
this.webBridge.receive(message);
}
}
Expand Down

0 comments on commit d855b2e

Please sign in to comment.