MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / getFrameDocIdAsObj

Function getFrameDocIdAsObj

src/background/utils/tabs.js:31–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 src[kTop] === 2 && src[kDocumentId] || src[kFrameId]
30);
31export const getFrameDocIdAsObj = id => +id >= 0
32 ? { [kFrameId]: +id }
33 : { [kDocumentId]: id };
34/**
35 * @param {chrome.tabs.Tab} tab
36 * @returns {string}

Callers 4

HttpRequestFunction · 0.90
reifyRequestsFunction · 0.90
broadcastFunction · 0.90
sendPopupShownFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected