aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/swarminject.js
blob: 78d37ef4690c45d92f0900fd2cfda009e5ba3a18 (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>" );
})();