From 9773c751a947f655a41343582f93fbc27ef8d724 Mon Sep 17 00:00:00 2001 From: yan Date: Tue, 28 Feb 2017 01:16:10 +0000 Subject: [PATCH] maybe fix #7405 --- app/sync.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/sync.js b/app/sync.js index 026fd61137d..8c86628b3ee 100644 --- a/app/sync.js +++ b/app/sync.js @@ -42,6 +42,8 @@ let pollIntervalId = null let deviceIdSent = false let bookmarksToolbarShown = false +const folderToObjectId = {} + /** * Sends sync records of the same category to the sync server. * @param {event.sender} sender @@ -185,7 +187,6 @@ module.exports.onSyncReady = (isFirstRun, e) => { * call; there's not enough time to dispatch id updates to appStore.sites. * @param {Immutable.Map} site */ - const folderToObjectId = {} const syncBookmark = (site) => { if (!site || site.get('objectId') || folderToObjectId[site.get('folderId')] || !syncUtil.isSyncable('bookmark', site)) { return