mirror of
https://github.com/MadeBaruna/paimon-moe.git
synced 2025-01-20 23:56:58 +01:00
Force download backup if conflict size is smaller
This commit is contained in:
parent
2c7f181936
commit
72e92e3596
1 changed files with 8 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue