1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-27 11:15:45 +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) 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)