Skip to content

Commit

Permalink
Swagger call now done via the protocol the page was called with. Addr…
Browse files Browse the repository at this point in the history
…esses gcis #382
  • Loading branch information
lomky committed Aug 9, 2016
1 parent bc256c0 commit 618a53a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Tuba/files/templates/api/index.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ div#resources_container {

<script type="text/javascript">
$(function () {
var url = 'http://' + window.location.host;
var url = window.location.protocol + '//' + window.location.host;
url += "/api_reference.json";
var here = window.location.pathname;
if (here == '/api') {
Expand Down

0 comments on commit 618a53a

Please sign in to comment.