()
| 45 | return new Promise((resolve) => { |
| 46 | let settled = false; |
| 47 | const finish = () => { |
| 48 | if (settled) return; |
| 49 | settled = true; |
| 50 | chrome.tabs.onUpdated.removeListener(onUpdated); |
| 51 | clearTimeout(timer); |
| 52 | resolve(); |
| 53 | }; |
| 54 | const onUpdated = (updatedTabId, changeInfo) => { |
| 55 | if (updatedTabId === tabId && changeInfo.status === "complete") { |
| 56 | finish(); |
no outgoing calls
no test coverage detected