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

Function getAllowlist

src/script.ts:17–28  ·  view source on GitHub ↗
(extensionId: string)

Source from the content-addressed store, hash-verified

15const extensionId = params.get('id')!;
16
17async function getAllowlist(extensionId: string): Promise<Storage['allowlist'] | undefined> {
18 const allowlist = await new Promise<Storage['allowlist']>((resolve) => {
19 chrome.runtime.sendMessage(
20 extensionId,
21 { type: 'allowlist' },
22 (response: Storage['allowlist']) => {
23 resolve(response);
24 }
25 );
26 });
27 return allowlist;
28}
29
30// Clear any bad state from another tab.
31chrome.runtime.sendMessage(extensionId, { type: 'success' });

Callers 1

script.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected