mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 06:46:38 +00:00
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;
|
||||
}
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user