mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-05 02:15: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)
|
||||
{
|
||||
if (browser.contentWindow == content)
|
||||
return i;
|
||||
if (browser.contentDocument == content)
|
||||
if (browser.contentWindow == content || browser.contentDocument == content)
|
||||
return i;
|
||||
}
|
||||
return -1;
|
||||
},
|
||||
|
||||
getTab: function (index)
|
||||
|
||||
Reference in New Issue
Block a user