From a4a9c4e4625b6a5ad0622a3a84a096238969b13c Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Fri, 17 Aug 2018 14:48:14 +0100 Subject: togglePinTab command should take a count prefix. --- background_scripts/commands.coffee | 2 +- background_scripts/main.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'background_scripts') diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee index 0573b9c1..218753b2 100644 --- a/background_scripts/commands.coffee +++ b/background_scripts/commands.coffee @@ -386,7 +386,7 @@ commandDescriptions = restoreTab: ["Restore closed tab", { background: true, repeatLimit: 20 }] moveTabToNewWindow: ["Move tab to new window", { background: true }] - togglePinTab: ["Pin or unpin current tab", { background: true, noRepeat: true }] + togglePinTab: ["Pin or unpin current tab", { background: true }] toggleMuteTab: ["Mute or unmute current tab", { background: true, noRepeat: true }] closeTabsOnLeft: ["Close tabs on the left", {background: true, noRepeat: true}] diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index 295c9d25..081122c0 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -216,7 +216,7 @@ BackgroundCommands = lastTab: (request) -> selectTab "last", request removeTab: ({count, tab}) -> forCountTabs count, tab, (tab) -> chrome.tabs.remove tab.id restoreTab: mkRepeatCommand (request, callback) -> chrome.sessions.restore null, callback request - togglePinTab: ({tab}) -> chrome.tabs.update tab.id, {pinned: !tab.pinned} + togglePinTab: ({count, tab}) -> forCountTabs count, tab, (tab) -> chrome.tabs.update tab.id, {pinned: !tab.pinned} toggleMuteTab: toggleMuteTab moveTabLeft: moveTab moveTabRight: moveTab -- cgit v1.2.3