MCPcopy Create free account
hub / github.com/andreadev-it/stacking-contexts-inspector / scrollToContext

Function scrollToContext

src/scripts/background.js:149–152  ·  view source on GitHub ↗

* Scrolls the page related to a specific tab id in order to show a context. * * @param {number} tabId * @param {number} contextId

(tabId, contextId)

Source from the content-addressed store, hash-verified

147 * @param {number} contextId
148 */
149async function scrollToContext(tabId, contextId) {
150 let connection = await getScriptConnection("content", tabId);
151 await connection.scrollToContext(contextId);
152}
153
154async function getPathFromContext(tabId, contextId) {
155 let connection = await getScriptConnection("content", tabId);

Callers

nothing calls this directly

Calls 1

getScriptConnectionFunction · 0.85

Tested by

no test coverage detected