Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
afdia authored Apr 22, 2017
1 parent 99e6d32 commit e72be1b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@
if (url && url.length > 1) {
url = decodeURIComponent(url[1]);
} else {
url = "swagger.json";
if (window.location.pathname.indexOf("index.html") >= 0) {
url = "../swagger.json";
}
else {
url = "swagger.json";
}
}

hljs.configure({
Expand Down

0 comments on commit e72be1b

Please sign in to comment.