From 9422cbc4b8b6427aedb3399f4b0324fb619ab7fe Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Sat, 28 Nov 2020 21:23:15 +0800 Subject: [PATCH] fix: folder name has multy space --- theme/classic.html | 1 + 1 file changed, 1 insertion(+) diff --git a/theme/classic.html b/theme/classic.html index 62790df..7681950 100644 --- a/theme/classic.html +++ b/theme/classic.html @@ -1077,6 +1077,7 @@ } else { var str=decodeURIComponent(document.getElementById('file_a'+num).href); if (str.substr(-1)==' ') str=str.substr(0, str.length-1); + if (str.substr(-1)=='/') str=str.substr(0, str.length-1); if (str.substr(-8)=='?preview') str=str.substr(0, str.length-8); if (str.lastIndexOf('/')>-1) str=str.substr(str.lastIndexOf('/')+1); }