Commit 8d318563cb464c13cc0983efa128adb4239725d8
1 parent
0fd37970
Exists in
master
and in
6 other branches
Fix url generation
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
index.html
... | ... | @@ -25,7 +25,10 @@ |
25 | 25 | if(base.match(/file:/) || filename.match(/http:/)){ |
26 | 26 | base = ''; |
27 | 27 | }else{ |
28 | - base = this.initBase() + '/'; | |
28 | + base = this.initBase(); | |
29 | + if(base.indexOf('/', base.length - 1) === -1) { | |
30 | + base = base + '/'; | |
31 | + } | |
29 | 32 | } |
30 | 33 | return base + filename; |
31 | 34 | } | ... | ... |