MCPcopy Create free account
hub / github.com/Roy3838/Observer / setNotificationContact

Method setNotificationContact

app/src/utils/settings.ts:229–234  ·  view source on GitHub ↗
(kind: string, value: string)

Source from the content-addressed store, hash-verified

227 }
228
229 public setNotificationContact(kind: string, value: string): void {
230 const all = this.readAllContacts();
231 const v = value.trim();
232 if (v) all[kind] = v; else delete all[kind];
233 localStorage.setItem(this.NOTIFICATION_CONTACTS_KEY, JSON.stringify(all));
234 }
235
236 public clearNotificationContacts(): void {
237 localStorage.removeItem(this.NOTIFICATION_CONTACTS_KEY);

Callers 2

confirmFunction · 0.80
saveFunction · 0.80

Calls 1

readAllContactsMethod · 0.95

Tested by

no test coverage detected