mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 02:47:58 +01:00
Remove config.mainWindowID tests from common/*.
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user