From 6f01001b05e3d2a786260b9a5774b2002392ac9a Mon Sep 17 00:00:00 2001 From: Florian Hotze Date: Thu, 15 Aug 2024 19:04:31 +0200 Subject: [PATCH] Main UI: Allow use of eval() in CSP (#2716) Regression from #2714. eval() seems to be required by ECharts: When opening a chart, an CSP error is thrown that traces back to ECharts, but the chart still renders. Signed-off-by: Florian Hotze --- bundles/org.openhab.ui/web/src/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bundles/org.openhab.ui/web/src/index.html b/bundles/org.openhab.ui/web/src/index.html index 317a8d70ae..7fbbf8eee6 100644 --- a/bundles/org.openhab.ui/web/src/index.html +++ b/bundles/org.openhab.ui/web/src/index.html @@ -15,14 +15,14 @@ * Enable eval(): add 'unsafe-eval' to default-src --> - <% if (process.env.NODE_ENV !== 'development') { %> - + <% if (process.env.NODE_ENV === 'production') { %> + <% } %>