diff --git a/chrome/content/zotero/preferences/preferences.js b/chrome/content/zotero/preferences/preferences.js index 2d517cf240..b55c9cef04 100644 --- a/chrome/content/zotero/preferences/preferences.js +++ b/chrome/content/zotero/preferences/preferences.js @@ -430,8 +430,9 @@ ${str} else { value = elem.value; } - elem.dispatchEvent(new Event('synctopreference')); + elem.dispatchEvent(new Event('beforesynctopreference')); Zotero.Prefs.set(preference, value, true); + elem.dispatchEvent(new Event('synctopreference')); }, /**