mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-27 05:45:46 +01:00
always return a value from tabs.getContentIndex
This commit is contained in:
@@ -707,11 +707,10 @@ function Tabs() //{{{
|
|||||||
{
|
{
|
||||||
for (let [i, browser] in this.browsers)
|
for (let [i, browser] in this.browsers)
|
||||||
{
|
{
|
||||||
if (browser.contentWindow == content)
|
if (browser.contentWindow == content || browser.contentDocument == content)
|
||||||
return i;
|
|
||||||
if (browser.contentDocument == content)
|
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
return -1;
|
||||||
},
|
},
|
||||||
|
|
||||||
getTab: function (index)
|
getTab: function (index)
|
||||||
|
|||||||
Reference in New Issue
Block a user