From 8d318563cb464c13cc0983efa128adb4239725d8 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Mon, 25 May 2015 09:12:25 -0300 Subject: [PATCH] Fix url generation --- index.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index a24c9b4..9153bec 100644 --- a/index.html +++ b/index.html @@ -25,7 +25,10 @@ if(base.match(/file:/) || filename.match(/http:/)){ base = ''; }else{ - base = this.initBase() + '/'; + base = this.initBase(); + if(base.indexOf('/', base.length - 1) === -1) { + base = base + '/'; + } } return base + filename; } -- libgit2 0.21.2