mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-23 04:15:26 +00:00
Monotone-Parent: cb40a9c82d22aadee4be035334aad9f79c4e019e
Monotone-Revision: cb9d1b0c8c179b314855342d6063c5c37d4e3de2 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-11-01T15:04:45 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1317,14 +1317,22 @@ function loadPreferences() {
|
||||
var http = createHTTPClient();
|
||||
http.open("GET", url, false);
|
||||
http.send("");
|
||||
if (http.status == 200)
|
||||
userDefaults = http.responseText.evalJSON(true);
|
||||
if (http.status == 200) {
|
||||
if (http.responseText.length > 0)
|
||||
userDefaults = http.responseText.evalJSON(true);
|
||||
else
|
||||
userDefaults = {};
|
||||
}
|
||||
|
||||
url = UserFolderURL + "jsonSettings";
|
||||
http.open("GET", url, false);
|
||||
http.send("");
|
||||
if (http.status == 200)
|
||||
userSettings = http.responseText.evalJSON(true);
|
||||
if (http.status == 200) {
|
||||
if (http.responseText.length > 0)
|
||||
userSettings = http.responseText.evalJSON(true);
|
||||
else
|
||||
userSettings = {};
|
||||
}
|
||||
}
|
||||
|
||||
function onLoadHandler(event) {
|
||||
|
||||
Reference in New Issue
Block a user