(tabId, frameId)
| 55 | }); |
| 56 | |
| 57 | export function clearValueOpener(tabId, frameId) { |
| 58 | if (tabId == null) { |
| 59 | toSend = {}; |
| 60 | } |
| 61 | openers::forEachEntry(([id, tabs]) => { |
| 62 | const frames = tabs[tabId]; |
| 63 | if (frames) { |
| 64 | if (frameId) { |
| 65 | delete frames[frameId]; |
| 66 | if (isEmpty(frames)) delete tabs[tabId]; |
| 67 | } else { |
| 68 | delete tabs[tabId]; |
| 69 | } |
| 70 | } |
| 71 | if (tabId == null || isEmpty(tabs)) { |
| 72 | delete openers[id]; |
| 73 | } |
| 74 | }); |
| 75 | } |
| 76 | |
| 77 | /** |
| 78 | * @param {VMInjection.Script[] | number[]} injectedScripts |
no test coverage detected