Force download backup if conflict size is smaller

pull/1/head
Made Baruna 2022-08-05 10:51:18 +07:00
parent 2c7f181936
commit 72e92e3596
1 changed files with 8 additions and 0 deletions

View File

@ -21,11 +21,19 @@
let loading = false;
function useLocalData() {
if (localSize / remoteSize < 0.3) {
downloadBackup();
}
loading = true;
useLocal();
}
function useRemoteData() {
if (remoteSize / localSize < 0.3) {
downloadBackup();
}
loading = true;
useRemote();
}