Skip to content

Commit

Permalink
Update let to use var
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Dodd <[email protected]>
  • Loading branch information
andrewdodd authored Jan 10, 2025
1 parent 6724579 commit e7de5e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/luci-base/htdocs/luci-static/resources/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ const UITextfield = UIElement.extend(/** @lends LuCI.ui.Textfield.prototype */ {
'title': _('Reveal/hide password'),
'aria-label': _('Reveal/hide password'),
'click': function(ev) {
var e = this.previousElementSibling;
let e = this.previousElementSibling;
// DOM manipulation (e.g. by password managers) may have inserted other
// elements between the reveal button and the input. This searches for
// the first previous sibling that is also an input.
Expand Down

0 comments on commit e7de5e9

Please sign in to comment.