Skip to content

Commit

Permalink
fix: overwrite headers and cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtsukino committed Jul 12, 2024
1 parent c045566 commit 9f7cc9d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/entries/Background/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,6 @@ export async function setConnection(origin: string) {

export async function setCookies(host: string, name: string, value: string) {
return mutex.runExclusive(async () => {
if (await getCookies(host, name)) return null;
await cookiesDb.sublevel(host).put(name, value);
return true;
});
Expand Down Expand Up @@ -345,7 +344,6 @@ export async function getConnection(origin: string) {
export async function setHeaders(host: string, name: string, value?: string) {
if (!value) return null;
return mutex.runExclusive(async () => {
if (await getHeaders(host, name)) return null;
await headersDb.sublevel(host).put(name, value);
return true;
});
Expand Down

0 comments on commit 9f7cc9d

Please sign in to comment.