MCPcopy Create free account
hub / github.com/zxlie/FeHelper / storageSet

Function storageSet

apps/popup/index.js:418–429  ·  view source on GitHub ↗
(items)

Source from the content-addressed store, hash-verified

416 },
417
418 storageSet(items) {
419 return new Promise(resolve => {
420 try {
421 const result = chrome.storage.local.set(items, () => resolve());
422 if (result && typeof result.then === 'function') {
423 result.then(() => resolve()).catch(() => resolve());
424 }
425 } catch (e) {
426 resolve();
427 }
428 });
429 },
430
431 safeParseJson(value, fallback) {
432 try {

Callers

nothing calls this directly

Calls 2

setMethod · 0.80
resolveFunction · 0.70

Tested by

no test coverage detected