Explorar el Código

fix:增加多个messageHandlers

liushengqiang hace 2 años
padre
commit
f030daa8d1
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/helpers/native-message.ts

+ 3 - 1
src/helpers/native-message.ts

@@ -81,7 +81,9 @@ const instance: any =
   (window as any).DAYA ||
   (window as any).webkit?.messageHandlers?.DAYA ||
   (window as any).COLEXIU ||
-  (window as any).webkit?.messageHandlers?.COLEXIU;
+  (window as any).webkit?.messageHandlers?.COLEXIU ||
+	(window as any).ORCHESTRA ||
+	(window as any).webkit?.messageHandlers?.ORCHESTRA;
 
 export const postMessage = (data: IPostMessage, callback?: CallBack) => {
   if (browserInfo.isApp) {