Fix jellyfin sync config merging
This commit is contained in:
+2
-1
@@ -757,9 +757,10 @@ CONFIG_HTML = r"""<!doctype html>
|
||||
const rootGroup = document.createElement("div");
|
||||
rootGroup.className = "browser-roots";
|
||||
for (const rootPath of roots) {
|
||||
const active = data.path === rootPath || String(data.path || "").startsWith(`${rootPath}/`);
|
||||
const button = document.createElement("button");
|
||||
button.type = "button";
|
||||
button.className = `ghost${rootPath === data.path ? " active" : ""}`;
|
||||
button.className = `ghost${active ? " active" : ""}`;
|
||||
button.textContent = rootPath;
|
||||
button.addEventListener("click", () => loadPathBrowser(rootPath));
|
||||
rootGroup.appendChild(button);
|
||||
|
||||
Reference in New Issue
Block a user