(tabId, allFrames, frameId)
| 284 | |
| 285 | /* ================== 注入实现 ================== */ |
| 286 | const _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 | |
| 292 | const _injectCss = (tabId, allFrames, frameId, css, monkey) => { |
| 293 | try { |
no outgoing calls
no test coverage detected