Differences From Artifact [8fee48eb89]:
- File gc_core/js/helpers.js — part of check-in [b08f2ef338] at 2017-08-06 00:44:03 on branch webext2_illusion — [core][js] ajout des ; oubliés et ajustement des ; en trop (commit erroné) (user: IllusionPerdu, size: 2861) [annotate] [blame] [check-ins using] [more...]
To Artifact [92497407e8]:
- File gc_core/js/helpers.js — part of check-in [ccebd25f43] at 2017-08-08 18:28:46 on branch webext2_fix — [core] force text/json mimetype in helpers.loadFile (user: IllusionPerdu, size: 2913) [annotate] [blame] [check-ins using]
| ︙ | |||
54 55 56 57 58 59 60 61 62 63 64 65 66 67 | 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | + |
} else {
// JS bullshit again… necessary for Thunderbird
let { Cc, Ci } = require("chrome");
xRequest = Cc["@mozilla.org/xmlextras/xmlhttprequest;1"].createInstance();
xRequest.QueryInterface(Ci.nsIXMLHttpRequest);
}
xRequest.open('GET', spf, false); // 3rd arg is false for synchronous, sync is acceptable in workers
xRequest.overrideMimeType('text/json');
xRequest.send();
return xRequest.responseText;
}
catch (e) {
this.logerror(e);
return null;
}
|
| ︙ |