1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 04:47:57 +01:00

Remove config.mainWindowID tests from common/*.

This commit is contained in:
Doug Kearns
2009-06-25 21:02:06 +10:00
parent 90e3dd345f
commit ddfa294e1b
5 changed files with 10 additions and 9 deletions

View File

@@ -43,8 +43,7 @@ function Buffer() //{{{
/////////////////////////////////////////////////////////////////////////////{{{
// FIXME: This doesn't belong here.
let mainWindowID = config.mainWindowID || "main-window";
let fontSize = util.computedStyle(document.getElementById(mainWindowID)).fontSize;
let fontSize = util.computedStyle(document.getElementById(config.mainWindowID)).fontSize;
styles.registerSheet("chrome://liberator/skin/liberator.css");
let error = styles.addSheet(true, "font-size", "chrome://liberator/content/buffer.xhtml",

View File

@@ -91,6 +91,11 @@ const configbase = { //{{{
*/
ignoreKeys: {}, // XXX: be aware you can't put useful values in here, as "modes.NORMAL" etc. are not defined at this time
/**
* @property {string} The ID of the application's main XUL window.
*/
mainWindowID: document.documentElement.id,
/**
* @property {[[]]} An array of application specific mode specifications.
* The values of each mode are passed to modes.addMode during