浏览代码

检证更新

sheshuangning 1 月之前
父节点
当前提交
3fb978ba68
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 二进制
      24_jz_1113_01.apk
  2. 5 5
      ppishow.html

二进制
24_jz_1112_01.apk → 24_jz_1113_01.apk


+ 5 - 5
ppishow.html

@@ -167,9 +167,9 @@
                             }
                             break;
                         case 'HM':
-                            if (typeof OpenHarmony !== 'undefined' &&
-                                OpenHarmony.jsCLoseWebView) {
-                                OpenHarmony.jsCLoseWebView();
+                            if (typeof window.OpenHarmony !== 'undefined' &&
+                                window.OpenHarmony.jsCLoseWebView) {
+                                window.OpenHarmony.jsCLoseWebView();
                                 success = true;
                                 message = '成功调用 HM 原生关闭方法';
                             } else {
@@ -216,8 +216,8 @@
                             }
                             break;
                         case 'HM':
-                            if (typeof OpenHarmony !== 'undefined' && OpenHarmony.jsCLoseWebView) {
-                                OpenHarmony.jsToTerminationActivity();
+                            if (typeof window.OpenHarmony !== 'undefined' && window.OpenHarmony.jsCLoseWebView) {
+                                window.OpenHarmony.jsToTerminationActivity();
                                 success = true;
                                 message = '成功调用 HM 跳转终止页面方法';
                             } else {