mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-24 18:45:46 +01:00
Prefer SBGetBrowser over getBrowser for Xulmus.
This commit is contained in:
@@ -41,8 +41,7 @@ const config = { //{{{
|
|||||||
p: ["Player controls", ["player_wrapper"]]
|
p: ["Player controls", ["player_wrapper"]]
|
||||||
},
|
},
|
||||||
|
|
||||||
//get visualbellWindow() getBrowser().mPanelContainer,
|
get isPlayerWindow() SBGetBrowser().mCurrentTab == SBGetBrowser().mediaTab,
|
||||||
get isPlayerWindow() getBrowser().mCurrentTab == getBrowser().mediaTab,
|
|
||||||
// focusContent() focuses this widget gSongbirdWindowController takes care of the focus.
|
// focusContent() focuses this widget gSongbirdWindowController takes care of the focus.
|
||||||
get mainWindowID() "mainplayer",
|
get mainWindowID() "mainplayer",
|
||||||
get visualbellWindow() document.getElementById(this.mainWindowID),
|
get visualbellWindow() document.getElementById(this.mainWindowID),
|
||||||
@@ -173,7 +172,7 @@ const config = { //{{{
|
|||||||
],
|
],
|
||||||
|
|
||||||
stop: function() {
|
stop: function() {
|
||||||
getBrowser().mCurrentBrowser.stop();
|
SBGetBrowser().mCurrentBrowser.stop();
|
||||||
},
|
},
|
||||||
|
|
||||||
init: function ()
|
init: function ()
|
||||||
@@ -538,7 +537,7 @@ const config = { //{{{
|
|||||||
}
|
}
|
||||||
|
|
||||||
window.BrowserStop = function () {
|
window.BrowserStop = function () {
|
||||||
getBrowser().mCurrentBrowser.stop();
|
SBGetBrowser().mCurrentBrowser.stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}; //}}}
|
}; //}}}
|
||||||
|
|||||||
Reference in New Issue
Block a user