location reload

This commit is contained in:
peter
2019-08-26 01:35:22 +02:00
parent 3daf3233a1
commit 87478689c8
2 changed files with 7 additions and 1 deletions
+2 -1
View File
@@ -104,5 +104,6 @@ window['setup'] = async() => {
fb.UpdateManager.startPlugin("PaymentManager"), fb.UpdateManager.startPlugin("PaymentManager"),
fb.UpdateManager.startPlugin("Wallet"), fb.UpdateManager.startPlugin("Wallet"),
]) ])
console.log(s) if(s.reduce((p,c) => p && c), true)
location.reload();
} }
+5
View File
@@ -109,6 +109,11 @@ export class UpdateManager implements Plugin{
if(!this.pluginUpdaters[name]) return false if(!this.pluginUpdaters[name]) return false
const status = await this.pluginUpdaters[name].getStatus() const status = await this.pluginUpdaters[name].getStatus()
if(!status.exists || status.empty || !status.tags || status.tags.length === 0){ if(!status.exists || status.empty || !status.tags || status.tags.length === 0){
if(status.currentTag && !status.latestTag){
//git glitches sometimes if you check immediately after clone
logger.warn("re-fetching tag for "+name+"...")
return await this.startPlugin(name)
}
logger.error("Bad repo status", name, status) logger.error("Bad repo status", name, status)
return false return false
} }