summaryrefslogtreecommitdiff
path: root/common/content/commandline.js
diff options
context:
space:
mode:
Diffstat (limited to 'common/content/commandline.js')
-rw-r--r--common/content/commandline.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/content/commandline.js b/common/content/commandline.js
index 4b297915..76296218 100644
--- a/common/content/commandline.js
+++ b/common/content/commandline.js
@@ -160,7 +160,7 @@ var CommandWidgets = Class("CommandWidgets", {
}
});
- let fontSize = util.computedStyle(document.getElementById(config.mainWindowId)).fontSize;
+ let fontSize = util.computedStyle(document.documentElement).fontSize;
styles.registerSheet("chrome://dactyl/skin/dactyl.css");
styles.system.add("font-size", "chrome://dactyl/content/buffer.xhtml",
"body { font-size: " + fontSize + "; }");