Permalink
Browse files
Change url in load example to relative url
- Loading branch information...
Showing
with
2 additions
and
2 deletions.
-
+2
−2
js/main.js
|
@@ -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