fix: review — 移除未用import + v6 fallback兼容旧格式version.txt
This commit is contained in:
@@ -48,6 +48,7 @@ function checkUpdate(){
|
||||
.then(r=>{if(!r.ok)throw Error('HTTP '+r.status);return r.text()})
|
||||
.then(function(t){t=t.trim();log('remote: '+t);
|
||||
var parts=t.indexOf('|')>0?t.split('|'):[t];var remoteVer=parts[0];dlUrl=parts[1]||'';
|
||||
if(!dlUrl)dlUrl=BASE+'/h5/index-v'+remoteVer.replace('0.1.0-dav-android-','')+'.html';
|
||||
var local='0.1.0-dav-android-6';
|
||||
if(remoteVer!==local){dlVer=remoteVer;
|
||||
log('*** NEW VERSION ***');document.getElementById('btnApply').disabled=false}
|
||||
|
||||
Reference in New Issue
Block a user