File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,13 @@ var nextTick = (typeof process === 'undefined' || process.browser) ?
88
99var grep ;
1010var iterations ;
11- if ( global . window && global . window . location && global . window . location . search ) {
12- grep = global . window . location . search . match ( / [ & ? ] g r e p = ( [ ^ & ] + ) / ) ;
13- grep = grep && decodeURIComponent ( grep [ 1 ] ) ;
14- iterations = global . window . location . search . match ( / [ & ? ] i t e r a t i o n s = ( [ ^ & ] + ) / ) ;
15- iterations = iterations && parseInt ( iterations [ 1 ] , 10 ) ;
16- } else if ( process && process . env ) {
17- grep = process . env . GREP ;
18- iterations = process . env . ITERATIONS && parseInt ( process . env . ITERATIONS , 10 ) ;
11+ const params = commonUtils . params ( ) ;
12+ if ( commonUtils . isNode ( ) ) {
13+ grep = params . GREP ;
14+ iterations = params . ITERATIONS && parseInt ( params . ITERATIONS , 10 ) ;
15+ } else {
16+ grep = params . grep ;
17+ iterations = params . iterations && parseInt ( params . iterations , 10 ) ;
1918}
2019
2120var adapterUsed ;
You can’t perform that action at this time.
0 commit comments