Fix non-standard syntax
This commit is contained in:
parent
1b3dfe1aea
commit
abd3054308
2 changed files with 3 additions and 3 deletions
|
@ -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)",
|
||||
|
|
|
@ -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=') {
|
||||
|
|
Loading…
Reference in a new issue