Fix: syncTarget is undefined

This commit is contained in:
eight 2019-10-04 19:52:42 +08:00
parent d88bd092e1
commit d65b7b0700

View File

@ -118,7 +118,7 @@ document.onclick = e => {
// FIXME: i18n
if (status.syncing) {
if (status.progress) {
const {phase, loaded, total} = status.syncTarget;
const {phase, loaded, total} = status.progress;
return `${phase}ing style ${loaded + 1} of ${total}`;
}
return 'syncing...';