diff options
Diffstat (limited to 'background_scripts/main.coffee')
| -rw-r--r-- | background_scripts/main.coffee | 4 | 
1 files changed, 1 insertions, 3 deletions
| diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index 272c3aa6..d4b14f3c 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -239,9 +239,7 @@ repeatFunction = (func, totalCount, currentCount, frameId) ->  moveTab = (count) ->    chrome.tabs.getAllInWindow null, (tabs) -> -    pinnedCount = 0 -    for tab in tabs -      pinnedCount += 1 if tab.pinned +    pinnedCount = (tabs.filter (tab) -> tab.pinned).length      chrome.tabs.getSelected null, (tab) ->        chrome.tabs.move tab.id,          index: Math.max pinnedCount, Math.min tabs.length - 1, tab.index + count | 
