mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-10 21:05:46 +01:00
Minor fixes.
This commit is contained in:
2
common/bootstrap.js
vendored
2
common/bootstrap.js
vendored
@@ -134,7 +134,7 @@ let JSMLoader = {
|
|||||||
return this.modules[name] = this.globals[uri];
|
return this.modules[name] = this.globals[uri];
|
||||||
|
|
||||||
this.globals[uri] = this.modules[name];
|
this.globals[uri] = this.modules[name];
|
||||||
bootstrap_jsm.loadSubScript(url, this.modules[name]);
|
bootstrap_jsm.loadSubScript(url, this.modules[name], "UTF-8");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
|
|||||||
@@ -749,7 +749,7 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
|
|||||||
*
|
*
|
||||||
* @returns {XMLHttpRequest}
|
* @returns {XMLHttpRequest}
|
||||||
*/
|
*/
|
||||||
httpGet: function httpGet(url, params, self) {
|
httpGet: function httpGet(url, params={}, self) {
|
||||||
if (callable(params))
|
if (callable(params))
|
||||||
// Deprecated.
|
// Deprecated.
|
||||||
params = { callback: params.bind(self) };
|
params = { callback: params.bind(self) };
|
||||||
|
|||||||
Reference in New Issue
Block a user