Skip to content

Commit

Permalink
update fetch example
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed May 6, 2024
1 parent fda07d0 commit edb949d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/javascript/fetch.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import rookie from "@rookie-rs/api";

function createHeaders() {
// Get all Github cookies from Brave browser
const cookies = rookie.brave(["github.com"]);
// Get all Github cookies from all browsers
const cookies = rookie.load(["github.com"]);
// Create cookie header
const cookie = cookies
.map((c) => decodeURIComponent(`${c.name}=${c.value}`))
Expand Down

0 comments on commit edb949d

Please sign in to comment.