Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove hardcoded http protocol so that requests will be made on same …

…protocol as the page
  • Loading branch information...
commit c642682e3334da9c9fafb76f583555ebc0b1e9a1 1 parent 0a44161
@tauren authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/client.js
  2. +1 −1  src/client.coffee
View
2  lib/client.js
@@ -107,7 +107,7 @@
serverRequire = function(path, callback) {
var request;
request = new XMLHttpRequest();
- request.open('GET', "http://" + requestHostname + ":" + requestPort + "/mundlejs" + path + "?" + (cacheDiffString()), true);
+ request.open('GET', "//" + requestHostname + ":" + requestPort + "/mundlejs" + path + "?" + (cacheDiffString()), true);
request.responseType = 'text';
request.onload = function() {
var response;
View
2  src/client.coffee
@@ -97,7 +97,7 @@ requestPort = window.location.port
# looks like: http://<location.hostname>:<location.port>/mundlejs</file requested>?alreadyLoadedModule=1&anotherAlreadyLoaded=1&.....
serverRequire = (path, callback)->
request = new XMLHttpRequest()
- request.open('GET', "http://#{requestHostname}:#{requestPort}/mundlejs#{path}?#{cacheDiffString()}", true)
+ request.open('GET', "//#{requestHostname}:#{requestPort}/mundlejs#{path}?#{cacheDiffString()}", true)
# request.setRequestHeader 'clientid', 'lakjsdflkjasld'
request.responseType = 'text'
request.onload = ->
Please sign in to comment.
Something went wrong with that request. Please try again.