MCPcopy Create free account
hub / github.com/hashintel/hash / clearError

Function clearError

apps/plugin-browser/src/shared/badge.ts:11–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9) => `/${status}-48${isTestBedBuild ? "-dev" : ""}.png`;
10
11export const clearError = async () => {
12 const inferenceConfig = await getFromLocalStorage("automaticInferenceConfig");
13
14 void browser.action.setIcon({
15 path: generateIconPath(inferenceConfig?.enabled ? "enabled" : "disabled"),
16 });
17};
18
19export const setDisabledBadge = () => {
20 void browser.action.setIcon({ path: generateIconPath("disabled") });

Callers 1

PopupFunction · 0.90

Calls 2

getFromLocalStorageFunction · 0.90
generateIconPathFunction · 0.85

Tested by

no test coverage detected