Permalink
Browse files

Change url in load example to relative url

  • Loading branch information...
1 parent 46dc3b2 commit ebac667d3f85f517e4e572691a5bf3f3b5a548a5 @wilbur-shi wilbur-shi committed with jmkao Aug 4, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/main.js
View
@@ -1064,8 +1064,8 @@ var stl = 'stl/StressTest.stl';
//var stl = 'stl/SLAcer.stl';
// File url
-var url = 'http://' + window.location.hostname + window.location.pathname + stl;
-
+// var url = 'http://' + window.location.hostname + window.location.pathname + stl;
+var url = window.location.href + stl;
// Create http request object
var xmlhttp = new XMLHttpRequest();

0 comments on commit ebac667

Please sign in to comment.