mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-08 00:45:47 +01:00
Fix return signature of tabs.tabStrip and showtabline's completer.
This commit is contained in:
@@ -123,7 +123,7 @@ function Tabs() //{{{
|
|||||||
let tabStrip = tabs.tabStrip;
|
let tabStrip = tabs.tabStrip;
|
||||||
|
|
||||||
if (!tabStrip)
|
if (!tabStrip)
|
||||||
return;
|
return options['showtabline']; // XXX
|
||||||
|
|
||||||
if (value == 0)
|
if (value == 0)
|
||||||
{
|
{
|
||||||
@@ -689,10 +689,14 @@ function Tabs() //{{{
|
|||||||
|
|
||||||
get tabStrip()
|
get tabStrip()
|
||||||
{
|
{
|
||||||
|
let tabStrip = null;
|
||||||
|
|
||||||
if (config.hostApplication == "Firefox")
|
if (config.hostApplication == "Firefox")
|
||||||
return getBrowser().mStrip.getElementsByClassName("tabbrowser-tabs")[0];
|
tabStrip = getBrowser().mStrip.getElementsByClassName("tabbrowser-tabs")[0];
|
||||||
else if (config.hostApplication == "Thunderbird")
|
else if (config.hostApplication == "Thunderbird")
|
||||||
return getBrowser().mStrip;
|
tabStrip = getBrowser().mStrip;
|
||||||
|
|
||||||
|
return tabStrip;
|
||||||
},
|
},
|
||||||
|
|
||||||
// @returns the index of the currently selected tab starting with 0
|
// @returns the index of the currently selected tab starting with 0
|
||||||
|
|||||||
Reference in New Issue
Block a user