(key: string)
| 268 | } |
| 269 | |
| 270 | private rotateCode(key: string): string { |
| 271 | const code = generateWhitelistCode(); |
| 272 | localStorage.setItem(key, code); |
| 273 | return code; |
| 274 | } |
| 275 | |
| 276 | /** The persisted WhatsApp code, generating and storing one on first use. */ |
| 277 | public ensureWhitelistCode(): string { return this.ensureCode(this.WHITELIST_CODE_KEY); } |
no test coverage detected