Skip to content

Commit

Permalink
Improve compatibility with TabsInTitlebar module
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed May 5, 2014
1 parent ef4d915 commit 5d53c82
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions content/treestyletab/windowHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ var TreeStyleTabWindowHelper = {
)
);

if ('TabsInTitlebar' in window &&
TabsInTitlebar._update) {
eval('window.TabsInTitlebar._update = '+
window.TabsInTitlebar._update.toSource().replace(
/let fullTabsHeight = /,
'$& gBrowser.treeStyleTab.position != "top" ? 0 : $1'
)
);
}

if ('BrowserOpenTab' in window) {
eval('window.BrowserOpenTab = '+
window.BrowserOpenTab.toSource().replace(
Expand Down

0 comments on commit 5d53c82

Please sign in to comment.