mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 11:37:57 +01:00
Fix MOW initialization in Teledactyl.
This commit is contained in:
@@ -153,9 +153,11 @@ const CommandWidgets = Class("CommandWidgets", {
|
|||||||
multilineOutput: Class.memoize(function () {
|
multilineOutput: Class.memoize(function () {
|
||||||
let elem = document.getElementById("dactyl-multiline-output");
|
let elem = document.getElementById("dactyl-multiline-output");
|
||||||
elem.contentDocument.body.id = "dactyl-multiline-output-content";
|
elem.contentDocument.body.id = "dactyl-multiline-output-content";
|
||||||
["copy", "copylink", "selectall"].forEach(function (id) {
|
["copy", "copylink", "selectall"].forEach(function (tail) {
|
||||||
document.getElementById("dactyl-context-" + id).style.listStyleImage =
|
// some host apps use "hostPrefixContext-copy" ids
|
||||||
util.computedStyle(document.getElementById("context-" + id)).listStyleImage;
|
let xpath = "//xul:menuitem[contains(@id, '" + "ontext-" + tail + "') and not(starts-with(@id, 'dactyl-'))]";
|
||||||
|
document.getElementById("dactyl-context-" + tail).style.listStyleImage =
|
||||||
|
util.computedStyle(util.evaluateXPath(xpath, document).snapshotItem(0)).listStyleImage;
|
||||||
});
|
});
|
||||||
return elem;
|
return elem;
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user