File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
src/tools/accessiblity-utils Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -35,18 +35,19 @@ export class AccessibilityScanner {
3535 const localHosts = new Set ( [ "127.0.0.1" , "localhost" , "0.0.0.0" ] ) ;
3636 const BS_LOCAL_DOMAIN = "bs-local.com" ;
3737
38- if ( hasLocal ) {
39- await ensureLocalBinarySetup ( localIdentifier ) ;
40- } else {
41- await killExistingBrowserStackLocalProcesses ( ) ;
42- }
43-
4438 if ( config . USE_OWN_LOCAL_BINARY_PROCESS ) {
4539 throw new Error (
4640 "Cannot start scan with local URLs when using own BrowserStack Local binary process. Please set USE_OWN_LOCAL_BINARY_PROCESS to false." ,
4741 ) ;
4842 }
4943
44+
45+ if ( hasLocal ) {
46+ await ensureLocalBinarySetup ( localIdentifier ) ;
47+ } else {
48+ await killExistingBrowserStackLocalProcesses ( ) ;
49+ }
50+
5051 const transformedUrlList = urlList . map ( ( url ) => {
5152 try {
5253 const parsed = new URL ( url ) ;
You can’t perform that action at this time.
0 commit comments