File tree Expand file tree Collapse file tree
apps/extension/src/background Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1691,6 +1691,7 @@ async function performSync(sourceId) {
16911691 // Step 7: Add new cloud bookmarks to local browser
16921692 // Set isSyncDrivenChange so onCreated/onMoved listeners don't pollute
16931693 // locallyModifiedBookmarkIds with sync-driven changes
1694+ let updatedLocally = 0 ;
16941695 isSyncDrivenChange = true ;
16951696 try {
16961697 if ( newFromCloud . length > 0 ) {
@@ -1701,7 +1702,6 @@ async function performSync(sourceId) {
17011702 // Step 7.5: Apply updates from cloud to local bookmarks
17021703 // This is critical for proper two-way sync: if another browser modified
17031704 // a bookmark's title, folder, or position, those changes should be pulled here.
1704- let updatedLocally = 0 ;
17051705 if ( bookmarksToUpdate . length > 0 ) {
17061706 console . log ( `[MarkSyncr] Found ${ bookmarksToUpdate . length } bookmarks to update from cloud` ) ;
17071707 updatedLocally = await updateLocalBookmarksFromCloud ( bookmarksToUpdate ) ;
You can’t perform that action at this time.
0 commit comments