Fix non-standard syntax
This commit is contained in:
parent
1b3dfe1aea
commit
abd3054308
|
@ -68,7 +68,7 @@ var Zotero_Charset_Menu = new function() {
|
||||||
Components.utils.import("resource://gre/modules/CharsetMenu.jsm");
|
Components.utils.import("resource://gre/modules/CharsetMenu.jsm");
|
||||||
var cmData = CharsetMenu.getData();
|
var cmData = CharsetMenu.getData();
|
||||||
for (let charsetList of [cmData.pinnedCharsets, cmData.otherCharsets]) {
|
for (let charsetList of [cmData.pinnedCharsets, cmData.otherCharsets]) {
|
||||||
for each(var charsetInfo in charsetList) {
|
for (let charsetInfo of charsetList) {
|
||||||
if(charsetInfo.value == "UTF-8") {
|
if(charsetInfo.value == "UTF-8") {
|
||||||
charsets.push({
|
charsets.push({
|
||||||
"label":"Unicode (UTF-8)",
|
"label":"Unicode (UTF-8)",
|
||||||
|
|
|
@ -639,7 +639,7 @@ Zotero_Preferences.Sync = {
|
||||||
// TODO: better error handling
|
// TODO: better error handling
|
||||||
|
|
||||||
// Verify username and password
|
// Verify username and password
|
||||||
var callback = function () {
|
var callback = Zotero.Promise.coroutine(function* () {
|
||||||
Zotero.Schema.stopRepositoryTimer();
|
Zotero.Schema.stopRepositoryTimer();
|
||||||
Zotero.Sync.Runner.clearSyncTimeout();
|
Zotero.Sync.Runner.clearSyncTimeout();
|
||||||
|
|
||||||
|
@ -663,7 +663,7 @@ Zotero_Preferences.Sync = {
|
||||||
var appStartup = Components.classes["@mozilla.org/toolkit/app-startup;1"]
|
var appStartup = Components.classes["@mozilla.org/toolkit/app-startup;1"]
|
||||||
.getService(Components.interfaces.nsIAppStartup);
|
.getService(Components.interfaces.nsIAppStartup);
|
||||||
appStartup.quit(Components.interfaces.nsIAppStartup.eRestart | Components.interfaces.nsIAppStartup.eAttemptQuit);
|
appStartup.quit(Components.interfaces.nsIAppStartup.eRestart | Components.interfaces.nsIAppStartup.eAttemptQuit);
|
||||||
};
|
});
|
||||||
|
|
||||||
// TODO: better way of checking for an active session?
|
// TODO: better way of checking for an active session?
|
||||||
if (Zotero.Sync.Server.sessionIDComponent == 'sessionid=') {
|
if (Zotero.Sync.Server.sessionIDComponent == 'sessionid=') {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user