MCPcopy Create free account
hub / github.com/Exafunction/codeium-chrome / unhealthy

Function unhealthy

src/shared.ts:45–60  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

43}
44
45export async function unhealthy(message: string): Promise<void> {
46 // We don't set the badge text on purpose.
47 await Promise.all([
48 chrome.action.setPopup({ popup: 'logged_in_popup.html' }),
49 chrome.action.setIcon({
50 path: {
51 16: '/icons/16/codeium_square_error.png',
52 32: '/icons/32/codeium_square_error.png',
53 48: '/icons/48/codeium_square_error.png',
54 128: '/icons/128/codeium_square_error.png',
55 },
56 }),
57 chrome.action.setTitle({ title: `Codeium (error: ${message})` }),
58 setStorageItem('lastError', { message: message }),
59 ]);
60}

Callers 1

serviceWorker.tsFile · 0.90

Calls 1

setStorageItemFunction · 0.90

Tested by

no test coverage detected