mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 00:17:58 +01:00
Fix brokenness.
This commit is contained in:
@@ -959,7 +959,7 @@ var CommandLine = Module("commandline", {
|
|||||||
this.savingOutput = true;
|
this.savingOutput = true;
|
||||||
apply(dactyl, "trapErrors", [fn, self].concat(args));
|
apply(dactyl, "trapErrors", [fn, self].concat(args));
|
||||||
this.savingOutput = false;
|
this.savingOutput = false;
|
||||||
return output.map(elem => elem instanceof Node ? DOM.stringify(elem) : elem)
|
return output.map(elem => elem instanceof Ci.nsIDOMNode ? DOM.stringify(elem) : elem)
|
||||||
.join("\n");
|
.join("\n");
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
|
|||||||
@@ -139,9 +139,11 @@ var MOW = Module("mow", {
|
|||||||
|
|
||||||
body.append(output);
|
body.append(output);
|
||||||
|
|
||||||
let str = typeof data !== "xml" && data.message || data;
|
if (!silent) {
|
||||||
if (!silent)
|
let str = data.message || data;
|
||||||
dactyl.triggerObserver("echoMultiline", data, highlightGroup, output[0]);
|
let msg = isString(str) ? str : output[0];
|
||||||
|
dactyl.triggerObserver("echoMultiline", data, highlightGroup, msg);
|
||||||
|
}
|
||||||
|
|
||||||
this._timer.tell();
|
this._timer.tell();
|
||||||
if (!this.visible)
|
if (!this.visible)
|
||||||
|
|||||||
Reference in New Issue
Block a user