mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-11 08:25:47 +01:00
Fix addons.jsm on FF36.
This commit is contained in:
@@ -326,7 +326,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
if (typeof str == "object" && "echoerr" in str)
|
||||
str = str.echoerr;
|
||||
else if (isinstance(str, ["Error"]))
|
||||
str = <>{str.fileName.replace(/^.*? -> /, "")}: {str.lineNumber}: {str}</>;
|
||||
str = <>{str.fileName.replace(/^.* -> /, "")}: {str.lineNumber}: {str}</>;
|
||||
|
||||
if (options["errorbells"])
|
||||
dactyl.beep();
|
||||
@@ -1131,7 +1131,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
});
|
||||
|
||||
params = params || {};
|
||||
if (isArray(params))
|
||||
if (isString(params))
|
||||
params = { where: params };
|
||||
|
||||
let flags = 0;
|
||||
|
||||
Reference in New Issue
Block a user