mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 17:17:59 +01:00
Fix MOW styling. Enable running cleanup code on bootstrapped disable. Re-enabling still does not work.
--HG-- branch : bootstrapped
This commit is contained in:
@@ -242,7 +242,9 @@ const CommandWidgets = Class("CommandWidgets", {
|
||||
multilineOutput: Class.memoize(function () {
|
||||
let elem = document.getElementById("dactyl-multiline-output");
|
||||
elem.contentWindow.addEventListener("unload", function (event) { event.preventDefault(); }, true);
|
||||
elem.contentDocument.body.id = "dactyl-multiline-output-content";
|
||||
elem.contentWindow.addEventListener("load", function (event) {
|
||||
elem.contentDocument.body.id = "dactyl-multiline-output-content";
|
||||
}, false);
|
||||
["copy", "copylink", "selectall"].forEach(function (tail) {
|
||||
// some host apps use "hostPrefixContext-copy" ids
|
||||
let xpath = "//xul:menuitem[contains(@id, '" + "ontext-" + tail + "') and not(starts-with(@id, 'dactyl-'))]";
|
||||
|
||||
Reference in New Issue
Block a user