feat: H5热更新 v6→v7 — 远端version.txt=v7 + index-v7.html
- ota/version.txt → 0.1.0-dav-android-7
- ota/h5/index-v7.html → 绿色标题+✅热更新成功提示
- embedded index.html → 下载目标改为v7
This commit is contained in:
@@ -27,7 +27,7 @@ function checkUpdate(){
|
||||
.then(r=>{if(!r.ok)throw Error('HTTP '+r.status);return r.text()})
|
||||
.then(t=>{t=t.trim();log('remote: '+t);
|
||||
var local=document.getElementById('ver').innerText;
|
||||
if(t!==local){dlVer=t;dlUrl=BASE+'/h5/index-v6.html';
|
||||
if(t!==local){dlVer=t;dlUrl=BASE+'/h5/index-v7.html';
|
||||
log('*** NEW VERSION: '+dlVer+' ***');document.getElementById('btnApply').disabled=false}
|
||||
else log('up to date')})
|
||||
.catch(e=>log('ERR: '+e.message))
|
||||
|
||||
Reference in New Issue
Block a user