fix(mobile-client): the JsBridge is not work
This commit is contained in:
parent
21efc5c66c
commit
6d0f5c1fe0
@ -3,12 +3,12 @@ interface InvokeFunction {
|
|||||||
(params: { action: 'moveTaskToBack' }, cb?: () => void): void;
|
(params: { action: 'moveTaskToBack' }, cb?: () => void): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
const jsBridge = (window as any).jsBridge as {
|
const JsBridge = (window as any).JsBridge as {
|
||||||
invoke: InvokeFunction;
|
invoke: InvokeFunction;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const invoke: InvokeFunction = (params, cb) => {
|
export const invoke: InvokeFunction = (params, cb) => {
|
||||||
jsBridge.invoke(params, cb);
|
JsBridge.invoke(params, cb);
|
||||||
};
|
};
|
||||||
|
|
||||||
export const isJSBridge = !!jsBridge;
|
export const isJSBridge = !!JsBridge;
|
||||||
|
Loading…
Reference in New Issue
Block a user