Skip to content

Commit

Permalink
fix protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
typpo committed Sep 28, 2015
1 parent b080ccb commit d892ab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/autoreload.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
this.Watch = function(host) {
(function poll() {
xhr = $.ajax({
url: '://' + (host || '') + '/waitForReload',
url: window.location.protocol + '//' + (host || '') + '/waitForReload',
success: function(data) {
window.location.reload();
},
Expand Down

0 comments on commit d892ab6

Please sign in to comment.