2024-10-17 05:36:41 +00:00
|
|
|
// export const runTimeEnv = () => {
|
|
|
|
// if (plus) {
|
|
|
|
// const currentWebView = plus.webview.getWebviewById("wv");
|
|
|
|
// return currentWebView.RunTime === "app";
|
|
|
|
// } else {
|
|
|
|
// return false;
|
|
|
|
// }
|
|
|
|
// };\
|
2024-10-15 08:45:54 +00:00
|
|
|
|
|
|
|
export const closeWebview = () => {
|
2024-10-17 05:36:41 +00:00
|
|
|
try {
|
|
|
|
const currentWebView = plus.webview.getWebviewById("wv");
|
|
|
|
currentWebView.close();
|
|
|
|
} catch (e) {
|
|
|
|
return () => {};
|
|
|
|
}
|
2024-10-15 08:45:54 +00:00
|
|
|
};
|