Changeset 4319


Ignore:
Timestamp:
10/09/2009 04:13:44 PM (6 years ago)
Author:
garry.yao
Message:

TestSwarm bootstrap script has broken the normal testing process.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CKTester/testswarm.js

    r4300 r4319  
    99        } catch(e){}
    1010
    11         var url = window.location.search;
    12         url = decodeURIComponent( url.slice( url.indexOf("swarmURL=") + 9 ) );
     11        var url, index;
     12        if( ( index = window.location.search.indexOf( "swarmURL=" ) ) != -1 )
     13                url = decodeURIComponent( url.slice( index + 9 ) );
    1314
    14         if ( !DEBUG && (!url || url.indexOf("http") !== 0) ) {
     15        if ( !DEBUG && (!url || url.indexOf("http") !== 0) )
     16        {
    1517                return;
    1618        }
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy