MCPcopy
hub / github.com/zxlie/FeHelper / storageGet

Function storageGet

apps/popup/index.js:403–416  ·  view source on GitHub ↗
(keys)

Source from the content-addressed store, hash-verified

401 },
402
403 storageGet(keys) {
404 return new Promise(resolve => {
405 try {
406 const result = chrome.storage.local.get(keys, data => {
407 resolve(data || {});
408 });
409 if (result && typeof result.then === 'function') {
410 result.then(data => resolve(data || {})).catch(() => resolve({}));
411 }
412 } catch (e) {
413 resolve({});
414 }
415 });
416 },
417
418 storageSet(items) {
419 return new Promise(resolve => {

Callers

nothing calls this directly

Calls 2

resolveFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected