Skip to content

Commit eed7a67

Browse files
authoredNov 9, 2018
Updated button.html to use hostname from browser rather than localhost.
1 parent 976e8f2 commit eed7a67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎public/button.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<script type="text/javascript">
88
$(document).ready(function() {
99
$('#server_button').click(function() {
10-
$.get('http://localhost:4000/', function(data) {
10+
$.get('http://' + document.location.hostname + ':4000', function(data) {
1111
$('#response_data').html(data); // show the list
1212
});
1313
});

0 commit comments

Comments
 (0)