diff --git a/common/content/commandline.js b/common/content/commandline.js index 90ad8dd5..08f091ff 100644 --- a/common/content/commandline.js +++ b/common/content/commandline.js @@ -148,12 +148,6 @@ var CommandWidgets = Class("CommandWidgets", { return this.commandbar; } }); - - let fontSize = util.computedStyle(document.documentElement).fontSize; - styles.system.add("font-size", "dactyl://content/buffer.xhtml", - "body { font-size: " + fontSize + "; } \ - html|html > xul|scrollbar { visibility: collapse !important; }", - true); }, addElement: function addElement(obj) { const self = this; diff --git a/common/content/mow.js b/common/content/mow.js index bccff26c..6a8ff4d7 100644 --- a/common/content/mow.js +++ b/common/content/mow.js @@ -8,6 +8,12 @@ var MOW = Module("mow", { init: function () { + let fontSize = util.computedStyle(document.documentElement).fontSize; + styles.system.add("font-size", "dactyl://content/buffer.xhtml", + "body { font-size: " + fontSize + "; } \ + html|html > xul|scrollbar { visibility: collapse !important; }", + true); + XML.ignoreWhitespace = true; util.overlayWindow(window, { objects: {