智能照明系统APP-本地串口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
LightingSystemApp-serial/.svn/pristine/8a/8a812c337c8ccf1ab2b93b632df...

26 lines
483 B

const isAlipay = window.my && navigator.userAgent.indexOf('AlipayClient') > -1
export function initWebviewApi (readyCallback) {
if (!isAlipay) {
return
}
document.addEventListener('DOMContentLoaded', readyCallback)
const {
navigateTo,
navigateBack,
switchTab,
reLaunch,
redirectTo,
postMessage,
getEnv
} = window.my
return {
navigateTo,
navigateBack,
switchTab,
reLaunch,
redirectTo,
postMessage,
getEnv
}
}