From c827a9c7235c413e8520708ffbf7f84cc1405060 Mon Sep 17 00:00:00 2001 From: dalechyn Date: Thu, 7 Nov 2024 03:58:15 +0200 Subject: [PATCH 1/2] fix: mobile actions from iframe --- .../jsonRpc/postJsonRpcRequestMessage.ts | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/web/actions/internal/jsonRpc/postJsonRpcRequestMessage.ts b/src/web/actions/internal/jsonRpc/postJsonRpcRequestMessage.ts index a78193ab..ad120acc 100644 --- a/src/web/actions/internal/jsonRpc/postJsonRpcRequestMessage.ts +++ b/src/web/actions/internal/jsonRpc/postJsonRpcRequestMessage.ts @@ -20,21 +20,6 @@ export function postJsonRpcRequestMessage( params: parameters, } - // ref: https://github.com/react-native-webview/react-native-webview/blob/master/docs/Guide.md#the-windowreactnativewebviewpostmessage-method-and-onmessage-prop - if ( - ( - window as { - ReactNativeWebView?: any - } - ).ReactNativeWebView - ) { - ;( - window as { - ReactNativeWebView?: { postMessage: (msg: string) => void } - } - ).ReactNativeWebView?.postMessage(JSON.stringify(message)) - } else { - window.parent.postMessage(message, '*') - } + window.parent.postMessage(message, '*') return requestId } From a22e837d021614c9f5de7a7945f57375c5763d5c Mon Sep 17 00:00:00 2001 From: dalechyn Date: Thu, 7 Nov 2024 03:58:59 +0200 Subject: [PATCH 2/2] chore: changesets --- .changeset/lazy-wasps-punch.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/lazy-wasps-punch.md diff --git a/.changeset/lazy-wasps-punch.md b/.changeset/lazy-wasps-punch.md new file mode 100644 index 00000000..faa0159a --- /dev/null +++ b/.changeset/lazy-wasps-punch.md @@ -0,0 +1,5 @@ +--- +"frog": patch +--- + +Fixed an issue where Composer Actions from mobile would not work. Got myself nerdsniped in a wrong direction.