Skip to content

Commit b54d8fd

Browse files
committed
Interop/Javascript: tweak code
1 parent 649f6ff commit b54d8fd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/javascript.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ function str2ab(str) {
4848
return buf;
4949
}
5050

51-
keyData = keyData
51+
key = keyData
5252
.replace(/-+[^-]+-+/g, '')
5353
.replace("\n", '')
5454
.replace("\r", '');
55-
keyData = str2ab(window.atob(keyData));
55+
key = str2ab(window.atob(key));
5656

5757
ciphertext = str2ab(window.atob(ciphertext));
5858

0 commit comments

Comments
 (0)