File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,11 @@ async function captureScreenshotsForConfig(
3131 else if ( browserName == constants . FIREFOX ) contextOptions . userAgent = constants . FIREFOX_USER_AGENT ;
3232 else if ( browserName == constants . SAFARI ) contextOptions . userAgent = constants . SAFARI_USER_AGENT ;
3333 else if ( browserName == constants . EDGE ) contextOptions . userAgent = constants . EDGE_USER_AGENT ;
34- if ( ctx . config . userAgent || urlConfig . userAgent ) {
34+ if ( ctx . config . userAgent || userAgent ) {
3535 if ( ctx . config . userAgent !== "" ) {
36- contextOptions . userAgent = ctx . config . userAgent ; }
37- if ( urlConfig . userAgent !== "" ) {
36+ contextOptions . userAgent = ctx . config . userAgent ;
37+ }
38+ if ( urlConfig . userAgent !== "" && urlConfig . userAgent !== undefined ) {
3839 contextOptions . userAgent = userAgent ;
3940 }
4041 }
You can’t perform that action at this time.
0 commit comments