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