mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-31 05:31:10 -04:00 
			
		
		
		
	refactor update listener and reload browser window on update success
This commit is contained in:
		| @ -73,6 +73,10 @@ export default { | ||||
|           this.isUpdateAvailable = false | ||||
|           window.toastr['success'](this.$t('settings.update_app.update_success')) | ||||
|           this.currentVersion = this.updateData.version | ||||
|  | ||||
|           setTimeout(() => { | ||||
|             location.reload() | ||||
|           }, 2000) | ||||
|         } else { | ||||
|           console.log(res.data) | ||||
|           window.toastr['error'](res.data.error) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user