From 6d0f5c1fe059bafc3a67a7cc589723f584d1eec6 Mon Sep 17 00:00:00 2001 From: Dunqing Date: Sun, 18 Jun 2023 10:30:27 +0800 Subject: [PATCH] fix(mobile-client): the JsBridge is not work --- .../plugins/mobile-client/src/client/core/bridge/injects.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/plugins/mobile-client/src/client/core/bridge/injects.ts b/packages/plugins/mobile-client/src/client/core/bridge/injects.ts index ff0af6d759..e4024da6ee 100644 --- a/packages/plugins/mobile-client/src/client/core/bridge/injects.ts +++ b/packages/plugins/mobile-client/src/client/core/bridge/injects.ts @@ -3,12 +3,12 @@ interface InvokeFunction { (params: { action: 'moveTaskToBack' }, cb?: () => void): void; } -const jsBridge = (window as any).jsBridge as { +const JsBridge = (window as any).JsBridge as { invoke: InvokeFunction; }; export const invoke: InvokeFunction = (params, cb) => { - jsBridge.invoke(params, cb); + JsBridge.invoke(params, cb); }; -export const isJSBridge = !!jsBridge; +export const isJSBridge = !!JsBridge;