Skip to content

Commit

Permalink
Get current host/port instead of using static host/port
Browse files Browse the repository at this point in the history
  • Loading branch information
weslambert committed Jan 23, 2020
1 parent b9a65db commit 9d108cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/graph.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ <h3>You can move and select nodes, zoom and pan the camera, and save the graph i
}
};

fetch('//{{unfurl_host}}:{{unfurl_port}}/api/{{ url_to_unfurl }}').then(response => {
fetch('//' + window.location.host + '/api/{{ url_to_unfurl }}').then(response => {
return response.json();
}).then(data => {
console.log(data);
Expand Down

0 comments on commit 9d108cf

Please sign in to comment.