This commit is contained in:
qing committed 2026-07-23 08:46:52 +08:00
1 parent 750bdbec6f
commit 2b52247bbf
1 file changed
+1
+1
View File
@@ -54,6 +54,7 @@ function esc(str) {
function navigate(path, type) {
if (type === "dir") window.location.href = "/" + path;
else if (type === "video" || type === "audio") window.location.href = "/video/" + path;
else if (/\.html?$/i.test(path)) window.open("/" + path, "_blank");
else window.location.href = "/" + path;
}
function playMedia(path) { window.location.href = "/video/" + path; }