mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-05 09:54:13 +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];
|
||||
|
||||
this.globals[uri] = this.modules[name];
|
||||
bootstrap_jsm.loadSubScript(url, this.modules[name]);
|
||||
bootstrap_jsm.loadSubScript(url, this.modules[name], "UTF-8");
|
||||
return;
|
||||
}
|
||||
catch (e) {
|
||||
|
||||
@@ -749,7 +749,7 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
|
||||
*
|
||||
* @returns {XMLHttpRequest}
|
||||
*/
|
||||
httpGet: function httpGet(url, params, self) {
|
||||
httpGet: function httpGet(url, params={}, self) {
|
||||
if (callable(params))
|
||||
// Deprecated.
|
||||
params = { callback: params.bind(self) };
|
||||
|
||||
Reference in New Issue
Block a user