Skip to content

Commit

Permalink
2.2.1
Browse files Browse the repository at this point in the history
PlaywrightWindow:
- Fixed no protocol error for setCookie()
  • Loading branch information
Osiris-Team committed Oct 15, 2021
1 parent f90af9a commit 04c40bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.osiris.headlessbrowser</groupId>
<artifactId>Headless-Browser</artifactId>
<version>2.2</version>
<version>2.2.1</version>
<repositories>
<repository>
<id>jitpack</id>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ public PlaywrightWindow setCookie(String name, String value, String urlOrDomain,
domain = "." + url.getAuthority();
} else {
domain = urlOrDomain;
url = new URL("https//" + domain + "/");
url = new URL("https://" + domain + "/");
}
jsContext.executeJavaScript("" +
"var cookie = {\n" +
Expand Down

0 comments on commit 04c40bb

Please sign in to comment.