MCPcopy
hub / github.com/darkreader/darkreader / writeLocalStorage

Function writeLocalStorage

src/background/utils/extension-api.ts:136–142  ·  view source on GitHub ↗
(values: T)

Source from the content-addressed store, hash-verified

134}
135
136export async function writeLocalStorage<T extends {[key: string]: any}>(values: T): Promise<void> {
137 return new Promise<void>((resolve) => {
138 chrome.storage.local.set(values, () => {
139 resolve();
140 });
141 });
142}
143
144export async function removeSyncStorage(keys: string[]): Promise<void> {
145 return new Promise<void>((resolve) => {

Callers 8

markAsReadMethod · 0.90
markAsDisplayedMethod · 0.90
saveSyncSettingMethod · 0.90
UserStorageClass · 0.90
startActivationMethod · 0.90
hideHighlightsFunction · 0.90
restoreHighlightsFunction · 0.90

Calls 1

setMethod · 0.65

Tested by

no test coverage detected