Fix strict mode JS error breaking sync status update

This commit is contained in:
Thomas Pike
2021-08-29 00:52:56 +02:00
parent be22ecf94d
commit d8e9741544

View File

@@ -362,6 +362,7 @@ $(function() {
setTimeout(get_server_account_sync_status, timeout);
} else {
var classname;
var message;
if(status.sync_status == 'sync success') { classname = 'success'; message = 'Synced'; }
if(status.sync_status == 'sync failure') { classname = 'danger'; message = 'Failed'; }
if(status.sync_status == 'sync warning') { classname = 'warning'; message = 'Not synced'; }