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

Function persist

apps/page-monkey/index.js:279–284  ·  view source on GitHub ↗
(silent)

Source from the content-addressed store, hash-verified

277 },
278
279 persist(silent) {
280 let data = {};
281 data[PAGE_MONKEY_LOCAL_STORAGE_KEY] = JSON.stringify(this.cachedMonkeys);
282 data[ORDER_KEY] = JSON.stringify(this.cachedMonkeys.map(m => m.id));
283 chrome.storage.local.set(data, () => { if (!silent) this.toast('已保存'); });
284 },
285
286 markUnsaved() { this.editCM.unSaved = true; },
287

Callers

nothing calls this directly

Calls 1

setMethod · 0.80

Tested by

no test coverage detected