(kind: string, value: string)
| 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); |
no test coverage detected