MCPcopy Create free account
hub / github.com/pacexy/flow / removeTab

Method removeTab

apps/reader/src/models/reader.ts:531–538  ·  view source on GitHub ↗
(index: number, groupIdx = this.focusedIndex)

Source from the content-addressed store, hash-verified

529 }
530
531 removeTab(index: number, groupIdx = this.focusedIndex) {
532 const group = this.groups[groupIdx]
533 if (group?.tabs.length === 1) {
534 this.removeGroup(groupIdx)
535 return group.tabs[0]
536 }
537 return group?.removeTab(index)
538 }
539
540 replaceTab(
541 param: TabParam,

Callers

nothing calls this directly

Calls 2

removeGroupMethod · 0.95
removeTabMethod · 0.45

Tested by

no test coverage detected