MCPcopy Create free account
hub / github.com/zxlie/FeHelper / _buildTarget

Function _buildTarget

apps/background/monkey.js:286–290  ·  view source on GitHub ↗
(tabId, allFrames, frameId)

Source from the content-addressed store, hash-verified

284
285/* ================== 注入实现 ================== */
286const _buildTarget = (tabId, allFrames, frameId) => {
287 if (typeof frameId === 'number') return { tabId, frameIds: [frameId] };
288 if (allFrames) return { tabId, allFrames: true };
289 return { tabId };
290};
291
292const _injectCss = (tabId, allFrames, frameId, css, monkey) => {
293 try {

Callers 3

_injectCssFunction · 0.85
_injectLogBridgeFunction · 0.85
execFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected