diff --git a/.gitignore b/.gitignore index b197f83..65fcedd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ +.web-extension-id +gog-affiliate-token-keeper.xpi gog-affiliate-token-keeper.crx gog-affiliate-token-keeper.pem diff --git a/background.js b/background.js index a0dd3c4..636e7f4 100644 --- a/background.js +++ b/background.js @@ -9,7 +9,7 @@ chrome.runtime.onMessage.addListener( if (request.message === 'set_gog_cookies') { COOKIES.forEach(function(name) { let cookie = { - url: 'https://*.gog.com', + url: 'https://www.gog.com/', name: name, value: TOKEN, domain: DOMAIN, diff --git a/content.js b/content.js index 0ed8ce8..2e967bb 100644 --- a/content.js +++ b/content.js @@ -1 +1 @@ -chrome.runtime.sendMessage({"message": "set_gog_cookies"}); +chrome.runtime.sendMessage({message: 'set_gog_cookies'});