fix
This commit is contained in:
parent
36d0ef2e31
commit
15fc542f6f
@ -1,7 +1,11 @@
|
|||||||
const currentWebView = plus.webview.getWebviewById("wv");
|
const currentWebView = plus.webview.getWebviewById("wv");
|
||||||
|
|
||||||
export const runTimeEnv = () => {
|
export const runTimeEnv = () => {
|
||||||
return currentWebView.RunTime === "app";
|
if (plus) {
|
||||||
|
return currentWebView.RunTime === "app";
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
export const closeWebview = () => {
|
export const closeWebview = () => {
|
||||||
currentWebView.close();
|
currentWebView.close();
|
||||||
|
Loading…
Reference in New Issue
Block a user