Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc-browser.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Rivera <34843760+onthegocode@users.noreply.github.com>2022-10-08 05:37:42 +0300
committerGitHub <noreply@github.com>2022-10-08 05:37:42 +0300
commit54609a3ed83dbdcb783cc5c44faaff2f7ee6ddc3 (patch)
treeaeeae43192fada4a67802535d62381e637709e17
parent19595526cfbfe8a0a970a8a000c76e1a41012031 (diff)
Update autocomplete.js
Updating for loop to modern forEach method to loop over node list and remove class.
-rw-r--r--keepassxc-browser/content/autocomplete.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/keepassxc-browser/content/autocomplete.js b/keepassxc-browser/content/autocomplete.js
index 4b20fab..63cdc0a 100644
--- a/keepassxc-browser/content/autocomplete.js
+++ b/keepassxc-browser/content/autocomplete.js
@@ -147,9 +147,7 @@ class Autocomplete {
deselectItem() {
const items = this.list.querySelectorAll('div.kpxcAutocomplete-active');
- for (const item of items) {
- item.classList.remove('kpxcAutocomplete-active');
- }
+ items.forEach(item => item.classList.remove('kpxcAutocomplete-active'));
}
closeList() {