aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/swarminject.js
blob: db69326abe169bc9963146f58cdfdf3410432bb2 (plain)
1
2
3
4
5
6
7
8
9
// 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>");
})();