Skip to content

Commit 6fd96a3

Browse files
authored
Merge pull request #88 from RoelVB/dev
Release 1.4.7
2 parents 91e8d5f + 234eec4 commit 6fd96a3

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

dist/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
"name": "ChromeKeePass",
55
"description": "Chrome extension for automatically entering credentials from KeePass/KeeWeb",
6-
"version": "1.4.6",
6+
"version": "1.4.7",
77

88
"commands": {
99
"redetect_fields": {

src/classes/FieldSet.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default class FieldSet
4141
* @param passwordField Pointer to the password field
4242
* @param usernameField Pointer to the username field
4343
*/
44-
constructor(private _pageControl: PageControl, public readonly passwordField: JQuery, public readonly usernameField?: JQuery) {
44+
constructor(private _pageControl: PageControl, public passwordField: JQuery, public readonly usernameField?: JQuery) {
4545
this._addListenerFunction('mousemove', this._onMouseMove.bind(this));
4646
this._addListenerFunction('mousedown', this._onMouseDown.bind(this));
4747
this._addListenerFunction('mouseleave', this._activateIcon.bind(this, true));

src/classes/PageControl.ts

+9-2
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,15 @@ export default class PageControl
8383
// We didn't find the username field. Check if password field is actually visible
8484
controlField = $passwordField;
8585
} // Else we didn't find a visible username of password field
86-
if(controlField && !this._fieldSets.has(controlField[0])) // Only create a FieldSet once for every field
87-
this._fieldSets.set(controlField[0], new FieldSet(this, $passwordField, controlField));
86+
87+
if(controlField)
88+
{
89+
if(this._fieldSets.has(controlField[0])) // We already have a fieldset for this controlfield?
90+
this._fieldSets.get(controlField[0])!.passwordField = $passwordField; // Set the passwordfield again, it might have changed (This happens for Dropbox, see issue #86)
91+
else
92+
this._fieldSets.set(controlField[0], new FieldSet(this, $passwordField, controlField));
93+
}
94+
8895
return false; // Break the each() loop
8996
}
9097
});

0 commit comments

Comments
 (0)