Skip to content

Commit 31e1588

Browse files
committed
Refactored to make code clean
1 parent 14da26f commit 31e1588

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/screenshot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async function captureScreenshotsForConfig(
3535
if(ctx.config.userAgent !== ""){
3636
contextOptions.userAgent = ctx.config.userAgent;
3737
}
38-
if (urlConfig.userAgent !== "" && urlConfig.userAgent !== undefined) {
38+
if (userAgent && userAgent !== "") {
3939
contextOptions.userAgent = userAgent;
4040
}
4141
}

0 commit comments

Comments
 (0)