Permalink
Browse files

Remove my sad security hack, load scripts relative.

  • Loading branch information...
1 parent ad2ef93 commit 35708b403c0272d4bc71140ec0b13913fe0f01d3 @deanm committed May 20, 2009
Showing with 1 addition and 4 deletions.
  1. +1 −4 demos/loader.html
View
@@ -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);

0 comments on commit 35708b4

Please sign in to comment.