Skip to content

Commit 8b9bb80

Browse files
committed
need an / when not empty
1 parent 2f8653b commit 8b9bb80

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

js/main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,6 +1252,9 @@ async function dialogMessage(message){
12521252
}
12531253

12541254
const BASE = window.location.pathname.replace(/\/$/,'');
1255+
if(BASE != ""){
1256+
BASE += '/'
1257+
}
12551258

12561259
async function downloadFile(filePath) {
12571260
let response = await fetch(BASE + filePath);

0 commit comments

Comments
 (0)