From 235ec08a6aca5c3d7349e56c577d223e23f6e9e2 Mon Sep 17 00:00:00 2001 From: Daniel Nilsson Date: Fri, 27 Dec 2024 19:37:18 +0100 Subject: [PATCH] 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 --- .../luci-app-squid/htdocs/luci-static/resources/view/squid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.30.2