(_menuInfo: unknown, tab: chrome.tabs.Tab)
| 5 | import {startFeatureIdentification} from '../helpers/bisect.js'; |
| 6 | |
| 7 | async function confirmAndReload(_menuInfo: unknown, tab: chrome.tabs.Tab): Promise<void> { |
| 8 | if (tab.id && tab.url && await isContentScriptRegistered(tab.url)) { |
| 9 | await startFeatureIdentification(new URL(tab.url).origin); |
| 10 | await chrome.tabs.reload(tab.id); |
| 11 | } else { |
| 12 | await alert('Refined GitHub is not running on this page'); |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | export default function addIdentifyFeatureContextMenu(): void { |
| 17 | void createContextMenu({ |
nothing calls this directly
no test coverage detected