diff --git a/src/main/cookie-manager.js b/src/main/cookie-manager.js index 4988a89..e2a0efd 100644 --- a/src/main/cookie-manager.js +++ b/src/main/cookie-manager.js @@ -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);