| 118 | |
| 119 | const skippedTabs = {}; |
| 120 | export const reloadAndSkipScripts = async tab => { |
| 121 | if (!tab) tab = await getActiveTab(); |
| 122 | const tabId = tab.id; |
| 123 | const bag = cache.get(getKey(tab.url, true)); |
| 124 | const reg = IS_FIREFOX && bag && unregisterScriptFF(bag); |
| 125 | skippedTabs[tabId] = 1; |
| 126 | if (reg) await reg; |
| 127 | clearFrameData(tabId); |
| 128 | await browser.tabs.reload(tabId); |
| 129 | }; |
| 130 | |
| 131 | const OPT_HANDLERS = { |
| 132 | [BLACKLIST]: cache.destroy, |
nothing calls this directly
no test coverage detected