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