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 ff0af6d75..e4024da6e 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;