commit abd305430873a48a4526582b190b001925f8f0fe
parent 1b3dfe1aeabd9bc60a736fa6dfe050adcaf2c8e5
Author: Tom Najdek <tom@doppnet.com>
Date: Fri, 6 Jan 2017 14:37:53 +0000
Fix non-standard syntax
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/chrome/content/zotero/charsetMenu.js b/chrome/content/zotero/charsetMenu.js
@@ -68,7 +68,7 @@ var Zotero_Charset_Menu = new function() {
Components.utils.import("resource://gre/modules/CharsetMenu.jsm");
var cmData = CharsetMenu.getData();
for (let charsetList of [cmData.pinnedCharsets, cmData.otherCharsets]) {
- for each(var charsetInfo in charsetList) {
+ for (let charsetInfo of charsetList) {
if(charsetInfo.value == "UTF-8") {
charsets.push({
"label":"Unicode (UTF-8)",
diff --git a/chrome/content/zotero/preferences/preferences_sync.js b/chrome/content/zotero/preferences/preferences_sync.js
@@ -639,7 +639,7 @@ Zotero_Preferences.Sync = {
// TODO: better error handling
// Verify username and password
- var callback = function () {
+ var callback = Zotero.Promise.coroutine(function* () {
Zotero.Schema.stopRepositoryTimer();
Zotero.Sync.Runner.clearSyncTimeout();
@@ -663,7 +663,7 @@ Zotero_Preferences.Sync = {
var appStartup = Components.classes["@mozilla.org/toolkit/app-startup;1"]
.getService(Components.interfaces.nsIAppStartup);
appStartup.quit(Components.interfaces.nsIAppStartup.eRestart | Components.interfaces.nsIAppStartup.eAttemptQuit);
- };
+ });
// TODO: better way of checking for an active session?
if (Zotero.Sync.Server.sessionIDComponent == 'sessionid=') {