File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 3
3
4
4
"name" : " ChromeKeePass" ,
5
5
"description" : " Chrome extension for automatically entering credentials from KeePass/KeeWeb" ,
6
- "version" : " 1.4.2 " ,
6
+ "version" : " 1.4.3 " ,
7
7
8
8
"commands" : {
9
9
"redetect_fields" : {
Original file line number Diff line number Diff line change @@ -75,15 +75,16 @@ export class KeePassHTTP
75
75
/** Load association key */
76
76
private _loadKey ( )
77
77
{
78
- this . _loadingKeyMutex . runExclusive ( ( ) => {
79
- return new Promise < void > ( ( resolve , reject ) => {
78
+ this . _loadingKeyMutex . runExclusive ( async ( ) => {
79
+ await new Promise < void > ( ( resolve , reject ) => {
80
80
KeePassHTTP . _id = localStorage . getItem ( 'KeePassHttpId' ) ;
81
81
KeePassHTTP . _key = localStorage . getItem ( 'KeePassHttpKey' ) ;
82
82
if ( KeePassHTTP . _id && KeePassHTTP . _key ) // Found key using the old method?
83
83
{
84
84
this . _saveKey ( ) ;
85
85
localStorage . removeItem ( 'KeePassHttpId' ) ;
86
86
localStorage . removeItem ( 'KeePassHttpKey' ) ;
87
+ resolve ( ) ;
87
88
}
88
89
else
89
90
{
You can’t perform that action at this time.
0 commit comments