location reload
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user