From d713bbec633c237a60b360a763bba0dd095d4e8d Mon Sep 17 00:00:00 2001 From: Josef Schlehofer Date: Sun, 23 Aug 2026 11:05:19 +0200 Subject: [PATCH] luci-app-lldpd: remove broken CSS version suffix The stylesheet link ends with '?v=#PKG_VERSION'. Nothing in this repository replaces that placeholder, so it does nothing. Remove it and link the stylesheet directly, like other applications do. Signed-off-by: Josef Schlehofer --- .../htdocs/luci-static/resources/view/lldpd/config.js | 4 +--- .../htdocs/luci-static/resources/view/lldpd/status.js | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/applications/luci-app-lldpd/htdocs/luci-static/resources/view/lldpd/config.js b/applications/luci-app-lldpd/htdocs/luci-static/resources/view/lldpd/config.js index 6296578a44e1..f08355279888 100644 --- a/applications/luci-app-lldpd/htdocs/luci-static/resources/view/lldpd/config.js +++ b/applications/luci-app-lldpd/htdocs/luci-static/resources/view/lldpd/config.js @@ -61,9 +61,7 @@ return L.view.extend({ // Inject CSS const head = document.getElementsByTagName('head')[0]; - const css = E('link', { 'href': - L.resource('lldpd/lldpd.css') - + '?v=#PKG_VERSION', 'rel': 'stylesheet' }); + const css = E('link', { 'href': L.resource('lldpd/lldpd.css'), 'rel': 'stylesheet' }); head.appendChild(css); }, diff --git a/applications/luci-app-lldpd/htdocs/luci-static/resources/view/lldpd/status.js b/applications/luci-app-lldpd/htdocs/luci-static/resources/view/lldpd/status.js index f0dc6e52fbc2..006c9d00de7c 100644 --- a/applications/luci-app-lldpd/htdocs/luci-static/resources/view/lldpd/status.js +++ b/applications/luci-app-lldpd/htdocs/luci-static/resources/view/lldpd/status.js @@ -68,9 +68,7 @@ return L.view.extend({ // Inject CSS const head = document.getElementsByTagName('head')[0]; - const css = E('link', { 'href': - L.resource('lldpd/lldpd.css') - + '?v=#PKG_VERSION', 'rel': 'stylesheet' }); + const css = E('link', { 'href': L.resource('lldpd/lldpd.css'), 'rel': 'stylesheet' }); head.appendChild(css); },