fix(mobile-client): the JsBridge is not work

This commit is contained in:
Dunqing 2023-06-18 10:30:27 +08:00
parent 21efc5c66c
commit 6d0f5c1fe0

View File

@ -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;