MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / get_assert_tab_id

Function get_assert_tab_id

extension/src/background.ts:41–45  ·  view source on GitHub ↗
(port: Port, place: Place_Name)

Source from the content-addressed store, hash-verified

39 })
40
41function get_assert_tab_id(port: Port, place: Place_Name): Tab_Id {
42 let tab_id = port.sender?.tab?.id
43 assert(tab_id, `${place} has no port sender tab id.`, port)
44 return tab_id as Tab_Id
45}
46
47type Script_Popup = {
48 port: Port

Callers 3

on_connectedFunction · 0.85
on_disconnectedFunction · 0.85
on_messageFunction · 0.85

Calls 1

assertFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…