1
0
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:
Doug Kearns
2008-12-08 13:25:07 +11:00
parent f52548c7a6
commit 2756201060

View File

@@ -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)