diff options
author | Andrew Rivera <34843760+onthegocode@users.noreply.github.com> | 2022-10-08 05:37:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-08 05:37:42 +0300 |
commit | 54609a3ed83dbdcb783cc5c44faaff2f7ee6ddc3 (patch) | |
tree | aeeae43192fada4a67802535d62381e637709e17 | |
parent | 19595526cfbfe8a0a970a8a000c76e1a41012031 (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.js | 4 |
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() { |