mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-16 23:02:31 +02:00
Fix return signature of tabs.tabStrip and showtabline's completer.
This commit is contained in:
1 parent
253346dbc3
commit
99384f1dad
1 file changed
+7
-3
@@ -123,7 +123,7 @@ function Tabs() //{{{
|
||||
let tabStrip = tabs.tabStrip;
|
||||
|
||||
if (!tabStrip)
|
||||
return;
|
||||
return options['showtabline']; // XXX
|
||||
|
||||
if (value == 0)
|
||||
{
|
||||
@@ -689,10 +689,14 @@ function Tabs() //{{{
|
||||
|
||||
get tabStrip()
|
||||
{
|
||||
let tabStrip = null;
|
||||
|
||||
if (config.hostApplication == "Firefox")
|
||||
return getBrowser().mStrip.getElementsByClassName("tabbrowser-tabs")[0];
|
||||
tabStrip = getBrowser().mStrip.getElementsByClassName("tabbrowser-tabs")[0];
|
||||
else if (config.hostApplication == "Thunderbird")
|
||||
return getBrowser().mStrip;
|
||||
tabStrip = getBrowser().mStrip;
|
||||
|
||||
return tabStrip;
|
||||
},
|
||||
|
||||
// @returns the index of the currently selected tab starting with 0
|
||||
|
||||
Reference in new issue
Block a user