Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove my sad security hack, load scripts relative.

  • Loading branch information...
commit 35708b403c0272d4bc71140ec0b13913fe0f01d3 1 parent ad2ef93
@deanm authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 demos/loader.html
View
5 demos/loader.html
@@ -29,11 +29,8 @@
var paths = document.location.hash.substr(1).split(',');
for (var i = 0, il = paths.length; i < il; ++i) {
var path = paths[i];
- // Some sort of sad security attempt to not load external js.
- if (path.indexOf(':') != -1)
- continue;
var script = document.createElement('script');
- script.src = path;
+ script.src = './' + path;
document.body.appendChild(script);
}
}, false);
Please sign in to comment.
Something went wrong with that request. Please try again.