From a0cafabaf13a227478cd79c3a2c772e5ee0c46bb Mon Sep 17 00:00:00 2001 From: Theodore Song Date: Sun, 5 Jul 2026 22:33:32 -0400 Subject: [PATCH] Prefer richer synced state --- index.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/index.html b/index.html index 54f67c7..502de85 100644 --- a/index.html +++ b/index.html @@ -596,10 +596,7 @@ function cloudShouldReplaceLocal(cloud,local){ const remote=stateFromSyncItems(cloud&&cloud.items); if(!remote)return false; const remoteDepth=stateDepth(remote), localDepth=stateDepth(local); - if(remoteDepth!==localDepth)return remoteDepth>localDepth; - const remoteTime=Date.parse(remote.last_run||cloud.updated_at||0)||0; - const localTime=Date.parse(local&&local.last_run||0)||0; - return remoteTime>localTime; + return remoteDepth>localDepth; } async function pushCloudState(){ try{