(script)
| 238 | |
| 239 | /** Reloads the active tab if script matches the URL */ |
| 240 | export async function reloadTabForScript(script) { |
| 241 | const { url, id } = await getActiveTab(); |
| 242 | if (injectableRe.test(url) && testScript(url, script)) { |
| 243 | return browser.tabs.reload(id); |
| 244 | } |
| 245 | } |
no test coverage detected