MCPcopy
hub / github.com/darkreader/darkreader / TempStorage

Class TempStorage

src/background/devtools.ts:75–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75class TempStorage implements DevToolsStorage {
76 private map = new Map<string, string>();
77
78 async get(key: string) {
79 return this.map.get(key) || null;
80 }
81
82 set(key: string, value: string) {
83 this.map.set(key, value);
84 }
85
86 remove(key: string) {
87 this.map.delete(key);
88 }
89
90 async has(key: string) {
91 return this.map.has(key);
92 }
93}
94
95export default class DevTools {
96 private static onChange: () => void;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected