From 5e2d4982d3132a1304a037e1f67ecd7aa189a53d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Tue, 25 Jul 2023 18:52:01 +0200 Subject: [PATCH] Rename KeyedAddress object as Account --- pwa/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pwa/app.js b/pwa/app.js index 5e41475..eddfa8d 100644 --- a/pwa/app.js +++ b/pwa/app.js @@ -14,7 +14,7 @@ function base64_decode(str_b64) { return b; } -class KeyedAddress { +class Account { constructor(local_part, separator, domain, key_b64) { this.local_part = local_part; this.domain = domain; @@ -40,7 +40,7 @@ class KeyedAddress { } ['a', 'b'].forEach((e) => { - const test_addr = new KeyedAddress(e, '+', 'example.org', '11voiefK5PgCX5F1TTcuoQ=='); + const test_addr = new Account(e, '+', 'example.org', '11voiefK5PgCX5F1TTcuoQ=='); console.log(test_addr); console.log('Account name: ' + test_addr.getName()); console.log('Sub-addr: ' + test_addr.genSubAddr('test'));