diff --git a/allstarr/wwwroot/index.html b/allstarr/wwwroot/index.html
index f4c5ff6..a479a3f 100644
--- a/allstarr/wwwroot/index.html
+++ b/allstarr/wwwroot/index.html
@@ -1002,8 +1002,8 @@
${p.trackCount || 0} |
${p.cacheAge || '-'} |
-
-
+
+
|
`).join('');
@@ -1104,8 +1104,8 @@
: 'Not Linked';
const actionButton = p.isConfigured
- ? ``
- : ``;
+ ? ``
+ : ``;
const localCount = p.localTracks || 0;
const externalCount = p.externalTracks || 0;
@@ -1448,6 +1448,11 @@
return div.innerHTML;
}
+ function escapeJs(text) {
+ if (!text) return '';
+ return text.replace(/\\/g, '\\\\').replace(/'/g, "\\'").replace(/"/g, '\\"');
+ }
+
// Initial load
fetchStatus();
fetchPlaylists();