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

Function getStorageData

src/storage.ts:49–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47}
48
49export function getStorageData(): Promise<Storage> {
50 return new Promise((resolve, reject) => {
51 chrome.storage.sync.get(null, (result) => {
52 if (chrome.runtime.lastError) {
53 return reject(chrome.runtime.lastError);
54 }
55
56 return resolve(result as Storage);
57 });
58 });
59}
60
61export function setStorageData(data: Storage): Promise<void> {
62 return new Promise((resolve, reject) => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected