diff --git a/source/background.js b/source/background.js index d289378..6f1f404 100644 --- a/source/background.js +++ b/source/background.js @@ -69,7 +69,7 @@ const queryGames = async (request) => { const gamesData = xmlDoc.getElementsByTagName('game') - let games = { + const games = { ets2: -1, ats: -1, all: -1, @@ -109,10 +109,9 @@ const queryGames = async (request) => { case '270880': games.ats = gameTime - return } } else { - games['all'] += gameTime + games.all += gameTime } } }) diff --git a/source/manifest.json b/source/manifest.json index 469143e..82b90c8 100644 --- a/source/manifest.json +++ b/source/manifest.json @@ -20,7 +20,8 @@ }, "permissions": [ "storage", - "alarms" + "alarms", + "*://steamcommunity.com/*" ], "options_ui": { "page": "options.html" @@ -97,4 +98,4 @@ "web_accessible_resources": [ "icons/tmp.png" ] -} +} \ No newline at end of file