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

Function fetchHotfixes

source/options.tsx:88–105  ·  view source on GitHub ↗
(event: MouseEvent)

Source from the content-addressed store, hash-verified

86}
87
88async function fetchHotfixes(event: MouseEvent): Promise<void> {
89 const button = event.currentTarget as HTMLButtonElement;
90 button.disabled = true;
91 try {
92 // Style
93 $('#hotfixes-field').textContent = getExclusions()
94 ?? await styleHotfixes.getFresh(version)
95 ?? 'No hotfixes needed for this version! 🎉';
96
97 // Broken features
98 const storage = await brokenFeatures.getFresh();
99 const field = $('#broken-features-field');
100 field.hidden = false;
101 field.textContent = JSON.stringify(storage, undefined, 2);
102 } finally {
103 button.disabled = false;
104 }
105}
106
107async function validateBackgroundPage(): Promise<void> {
108 if (await messageRuntime({ping: true}) !== 'pong') {

Callers

nothing calls this directly

Calls 1

getExclusionsFunction · 0.85

Tested by

no test coverage detected