MCPcopy Index your code
hub / github.com/refined-github/refined-github / confirmAndReload

Function confirmAndReload

source/options/identify-feature.ts:7–14  ·  view source on GitHub ↗
(_menuInfo: unknown, tab: chrome.tabs.Tab)

Source from the content-addressed store, hash-verified

5import {startFeatureIdentification} from '../helpers/bisect.js';
6
7async 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
16export default function addIdentifyFeatureContextMenu(): void {
17 void createContextMenu({

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected