MCPcopy Index your code
hub / github.com/philc/vimium / togglePinTab

Function togglePinTab

background_scripts/main.js:337–341  ·  view source on GitHub ↗
({ count, tab })

Source from the content-addressed store, hash-verified

335 await chrome.sessions.restore(null);
336 }),
337 async togglePinTab({ count, tab }) {
338 await forCountTabs(count, tab, (tab) => {
339 chrome.tabs.update(tab.id, { pinned: !tab.pinned });
340 });
341 },
342 toggleMuteTab,
343 moveTabLeft: moveTab,
344 moveTabRight: moveTab,

Callers

nothing calls this directly

Calls 2

forCountTabsFunction · 0.85
updateMethod · 0.80

Tested by

no test coverage detected