File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -12,17 +12,16 @@ function LocalBinary(){
12
12
this . is64bits = process . arch == 'x64' ;
13
13
14
14
this . getDownloadPath = function ( ) {
15
- var that = this ;
16
- if ( that . hostOS . match ( / d a r w i n | m a c o s / i) ) {
15
+ if ( this . hostOS . match ( / d a r w i n | m a c o s / i) ) {
17
16
return 'https://s3.amazonaws.com/bstack-local-prod/BrowserStackLocal-darwin-x64' ;
18
- } else if ( that . hostOS . match ( / m s w i n | m s y s | m i n g w | c y g w i n | b c c w i n | w i n c e | e m c | w i n 3 2 / i) ) {
19
- that . windows = true ;
17
+ } else if ( this . hostOS . match ( / m s w i n | m s y s | m i n g w | c y g w i n | b c c w i n | w i n c e | e m c | w i n 3 2 / i) ) {
18
+ this . windows = true ;
20
19
return 'https://s3.amazonaws.com/bstack-local-prod/BrowserStackLocal.exe' ;
21
20
} else {
22
- if ( that . isAlpine ( ) ) {
21
+ if ( this . isAlpine ( ) ) {
23
22
return 'https://s3.amazonaws.com/bstack-local-prod/BrowserStackLocal-alpine' ;
24
23
} else {
25
- if ( that . is64bits )
24
+ if ( this . is64bits )
26
25
return 'https://s3.amazonaws.com/bstack-local-prod/BrowserStackLocal-linux-x64' ;
27
26
else
28
27
return 'https://s3.amazonaws.com/bstack-local-prod/BrowserStackLocal-linux-ia32' ;
You can’t perform that action at this time.
0 commit comments