MCPcopy Create free account
hub / github.com/OneNoteDev/WebClipper / getStoredValue

Method getStoredValue

src/scripts/clipperUI/frontEndGlobals.ts:59–64  ·  view source on GitHub ↗
(key: string, callback: (value: string) => void, cacheValue?: boolean)

Source from the content-addressed store, hash-verified

57 }
58
59 public static getStoredValue(key: string, callback: (value: string) => void, cacheValue?: boolean): void {
60 if (!Clipper.storage) {
61 throw new Error("The remote storage needs to be set up with the extension communicator first");
62 }
63 Clipper.storage.getValue(key, callback, cacheValue);
64 }
65
66 public static preCacheStoredValues(storageKeys: string[]): void {
67 if (!Clipper.storage) {

Callers 7

resetFrontEndStorageFunction · 0.80
testsMethod · 0.80
testsMethod · 0.80
testsMethod · 0.80

Calls 1

getValueMethod · 0.65

Tested by

no test coverage detected