store-management-app/utils/index.js

9 lines
204 B
JavaScript
Raw Normal View History

2024-10-15 08:45:54 +00:00
const currentWebView = plus.webview.getWebviewById("wv");
export const runTimeEnv = () => {
return currentWebView.RunTime === "app";
};
export const closeWebview = () => {
currentWebView.close();
};