mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Merge pull request #41 from keepassxreboot/custom_placeholders_fix
Fixes the custom placeholders
This commit is contained in:
commit
86942eb261
1 changed files with 5 additions and 4 deletions
|
|
@ -1504,15 +1504,16 @@ cip.setValue = function(field, value) {
|
|||
}
|
||||
};
|
||||
|
||||
cip.fillInStringFields = function(fields, StringFields, filledInFields) {
|
||||
cip.fillInStringFields = function(fields, stringFields, filledInFields) {
|
||||
let $filledIn = false;
|
||||
|
||||
filledInFields.list = [];
|
||||
if (fields && StringFields && fields.length > 0 && StringFields.length > 0) {
|
||||
if (fields && stringFields && fields.length > 0 && stringFields.length > 0) {
|
||||
for (let i = 0; i < fields.length; i++) {
|
||||
const $sf = _fs(fields[i]);
|
||||
if ($sf && StringFields[i]) {
|
||||
cip.setValue($sf, StringFields[i].Value);
|
||||
const stringFieldValue = Object.values(stringFields[i]);
|
||||
if ($sf && stringFieldValue[0]) {
|
||||
cip.setValue($sf, stringFieldValue[0]);
|
||||
filledInFields.list.push(fields[i]);
|
||||
$filledIn = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue