MCPcopy Create free account
hub / github.com/OpenAnonymity/oa-chat / deleteSetting

Method deleteSetting

chat/db.js:646–655  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

644 const store = transaction.objectStore('settings');
645
646 transaction.oncomplete = () => resolve();
647 transaction.onerror = () => reject(transaction.error);
648
649 (entries || []).forEach(({ key, value }) => {
650 store.put({ key, value });
651 });
652 });
653 }
654
655 /**
656 * Atomically apply settings puts and deletes in one IndexedDB transaction.
657 * This is used for account-scope transitions where a partial commit could
658 * otherwise associate one account's live data with another account marker.

Callers 5

logoutMethod · 0.80
clearLocalAccountMethod · 0.80
clearAllMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected