diff options
author | anekos | 2010-12-19 09:38:12 +0900 |
---|---|---|
committer | anekos | 2010-12-19 09:38:12 +0900 |
commit | 0564069bb64b43a6391bf260498a8e3e20722cdc (patch) | |
tree | 5dcc4bc18066a19bee395ff6a9bbd08e39ff66d7 | |
parent | bf3d8dd9f655503d53f698f7957f3627d8215ecb (diff) | |
download | vimperator-plugins-0564069bb64b43a6391bf260498a8e3e20722cdc.tar.bz2 |
Check visible tabs only
-rw-r--r-- | panorama.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/panorama.js b/panorama.js index 464bdaa..77399d5 100644 --- a/panorama.js +++ b/panorama.js @@ -2,7 +2,7 @@ * Use at your OWN RISK. */ let INFO = <> -<plugin name="panorama" version="0.6.1" +<plugin name="panorama" version="0.6.2" href="https://github.com/vimpr/vimperator-plugins/blob/master/panorama.js" summary="Add supports for Panorama" lang="en-US" @@ -379,7 +379,7 @@ function switchToGroup (spec, wrap) { function removeTab (tab, count, focusLeftTab, quitOnLastTab) { const gb = gBrowser; function remove (tab) { - if (gb.tabs.length > 1) { + if (vTabs.length > 1) { gb.removeTab(tab); } else if (buffer.URL != "about:blank" || gb.webNavigation.sessionHistory.count > 0) { gb.loadURI("about:blank"); |