Index: /CKTester/testswarm.js
===================================================================
--- /CKTester/testswarm.js	(revision 4318)
+++ /CKTester/testswarm.js	(revision 4319)
@@ -9,8 +9,10 @@
 	} catch(e){}
 
-	var url = window.location.search;
-	url = decodeURIComponent( url.slice( url.indexOf("swarmURL=") + 9 ) );
+	var url, index;
+	if( ( index = window.location.search.indexOf( "swarmURL=" ) ) != -1 )
+		url = decodeURIComponent( url.slice( index + 9 ) );
 
-	if ( !DEBUG && (!url || url.indexOf("http") !== 0) ) {
+	if ( !DEBUG && (!url || url.indexOf("http") !== 0) )
+	{
 		return;
 	}
