From: Daniel Nilsson Date: Fri, 27 Dec 2024 18:37:18 +0000 (+0100) Subject: luci-app-squid: remove variable redeclaration X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=235ec08a6aca5c3d7349e56c577d223e23f6e9e2;p=project%2Fluci.git luci-app-squid: remove variable redeclaration Since 22d4830 the form variables m, s, and o was changed to be declared with let instead of var, but the o variable was redeclared in the app, resulting in a redeclaration error when it was changed to instead be declared with let. Signed-off-by: Daniel Nilsson --- diff --git a/applications/luci-app-squid/htdocs/luci-static/resources/view/squid.js b/applications/luci-app-squid/htdocs/luci-static/resources/view/squid.js index ef697a668e..e37e669ec5 100644 --- a/applications/luci-app-squid/htdocs/luci-static/resources/view/squid.js +++ b/applications/luci-app-squid/htdocs/luci-static/resources/view/squid.js @@ -49,7 +49,7 @@ return view.extend({ s.tab('general', _('General Settings')); s.tab('advanced', _('Advanced Settings')); - var o = s.taboption('general', form.Value, 'config_file', _('Config file')); + o = s.taboption('general', form.Value, 'config_file', _('Config file')); o.datatype = 'string'; o.default = '/etc/squid/squid.conf'; o.validate = function(section_id, value) {