MCPcopy
hub / github.com/darkreader/darkreader / writeEnabledForHost

Function writeEnabledForHost

src/inject/cache.ts:22–27  ·  view source on GitHub ↗
(value: boolean)

Source from the content-addressed store, hash-verified

20}
21
22export function writeEnabledForHost(value: boolean): void {
23 try {
24 sessionStorage.setItem(STORAGE_KEY_WAS_ENABLED_FOR_HOST, value ? 'true' : 'false');
25 } catch (err) {
26 }
27}
28
29let imageCacheTimeout: any = 0;
30const imageDetailsCacheQueue = new Map<string, ImageDetails>();

Callers 2

onMessageFunction · 0.90
onDarkThemeDetectedFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected