mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 01:12:31 +02:00
always return a value from tabs.getContentIndex
This commit is contained in:
1 parent
f52548c7a6
commit
2756201060
1 file changed
+2
-3
@@ -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