1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 16:27:59 +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

@@ -32,7 +32,7 @@ const config = { //{{{
/*** required options, no checks done if they really exist, so be careful ***/
name: "Xulmus",
hostApplication: "Songbird",
//mainWindowID: "mainplayer",
/*** optional options, there are checked for existence and a fallback provided ***/
features: ["bookmarks", "hints", "marks", "history", "quickmarks", "session", "tabs", "windows", "player"],
defaults: {
@@ -48,7 +48,6 @@ const config = { //{{{
get isPlayerWindow() SBGetBrowser().mCurrentTab == SBGetBrowser().mediaTab,
// focusContent() focuses this widget gSongbirdWindowController takes care of the focus.
get mainWindowID() "mainplayer",
get visualbellWindow() document.getElementById(this.mainWindowID),
styleableChrome: "chrome://gonzo/content/xul/mainplayer.xul",
@@ -537,8 +536,7 @@ const config = { //{{{
{
try
{
let id = this.mainWindowID || "mainplayer";
document.getElementById(id).setAttribute("titlemodifier", value);
document.getElementById(config.mainWindowID).setAttribute("titlemodifier", value);
if (window.content.document.title.length > 0)
document.title = window.content.document.title + " - " + value;
else