jquery-ui/tests/unit/swarminject.js
Scott González a28983086e Tests: Lint.
2012-04-18 22:36:15 -04:00

10 lines
338 B
JavaScript

// load testswarm agent
(function() {
var url = window.location.search;
url = decodeURIComponent( url.slice( url.indexOf("swarmURL=") + 9 ) );
if ( !url || url.indexOf("http") !== 0 ) {
return;
}
document.write( "<scr" + "ipt src='http://swarm.jquery.org/js/inject.js?" + (new Date()).getTime() + "'></scr" + "ipt>" );
})();