Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuineng committed Oct 12, 2023
1 parent 44f45d3 commit 0c32663
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wd/lib/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -2273,7 +2273,7 @@ commands.allCookies = function() {
commands.setCookie = function(cookie) {
const cb = findCallback(arguments);
// setting secure otherwise selenium server throws
if (cookie) {
if (cookie && typeof cookie === 'object') {
cookie.secure = cookie.secure || false;
}

Expand Down

0 comments on commit 0c32663

Please sign in to comment.