Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
afdia authored Dec 7, 2017
1 parent 65f2bd7 commit bfb1c3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@
// derive base path from window.location.pathname, set it to basePath and update footer
var fixedBase;
if (window.location.pathname.indexOf("index.html") >= 0) {
fixedBase = window.location.pathname.replace("swagger-ui/index.html","rest");
fixedBase = window.location.pathname.replace("static/docs/swagger-ui/index.html","rest");
}
else {
fixedBase = window.location.pathname.replace("swagger-ui/","rest");
fixedBase = window.location.pathname.replace("static/docs/swagger-ui/","rest");
}
swaggerApi.setBasePath(fixedBase);
document.getElementsByClassName("footer")[0].getElementsByTagName("h4")[0].childNodes[2].data = ": " +fixedBase + ", ";
Expand Down

0 comments on commit bfb1c3c

Please sign in to comment.