Skip to content

Commit dcc146c

Browse files
committed
fix: updatedLocally scoping error from sync refactor
1 parent 9b60f8d commit dcc146c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/extension/src/background/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)