Skip to content

Commit

Permalink
[fixup] wrong handle in cookie manager onChanged listener
Browse files Browse the repository at this point in the history
  • Loading branch information
nxmatic committed Jul 8, 2024
1 parent 0a09399 commit 08a0a39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/cookie-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class CookieManager extends ServiceWorkerComponent {
}

enable(domain) {
chrome.cookies.onChanged.addListener(this.onChanged);
chrome.cookies.onChanged.addListener(this.onCookieChanged);
this._undoStack.push(() => chrome.cookies.onChanged.removeListener(this.onCookieChanged));
return chrome.cookies.getAll({ domain }).then((cookies) => {
this._domainCookies.set(domain, cookies);
Expand Down

0 comments on commit 08a0a39

Please sign in to comment.