From 0a8a1a551af33e294747799c2942f78bacc9f01a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Forr=C3=B3?= Date: Fri, 8 Jun 2018 12:45:46 +0200 Subject: [PATCH] Improve Firefox compatibility --- .gitignore | 2 ++ background.js | 2 +- content.js | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) 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'});