Skip to content

Commit ff51822

Browse files
authored
lnc-web: initialize salt and testCipher as blank
avoid webpack errors
1 parent f89b5eb commit ff51822

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ export default class LNC {
116116
this._password = config.password || '';
117117
this._onLocalPrivCreate = config.onLocalPrivCreate;
118118
this._onRemoteKeyReceive = config.onRemoteKeyReceive;
119+
this.salt = '';
120+
this.testCipher = '';
119121

120122
if (localStorage.getItem(`${this._namespace}:salt`)) {
121123
this.salt = localStorage.getItem(`${this._namespace}:salt`) || '';

0 commit comments

Comments
 (0)