Skip to content
This repository has been archived by the owner on Dec 24, 2022. It is now read-only.

Commit

Permalink
Fix Firefox CORS error
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmaxik committed Mar 19, 2021
1 parent 26d2a9d commit 2fc7005
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 2 additions & 3 deletions source/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const queryGames = async (request) => {

const gamesData = xmlDoc.getElementsByTagName('game')

let games = {
const games = {
ets2: -1,
ats: -1,
all: -1,
Expand Down Expand Up @@ -109,10 +109,9 @@ const queryGames = async (request) => {

case '270880':
games.ats = gameTime
return
}
} else {
games['all'] += gameTime
games.all += gameTime
}
}
})
Expand Down
5 changes: 3 additions & 2 deletions source/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
},
"permissions": [
"storage",
"alarms"
"alarms",
"*://steamcommunity.com/*"
],
"options_ui": {
"page": "options.html"
Expand Down Expand Up @@ -97,4 +98,4 @@
"web_accessible_resources": [
"icons/tmp.png"
]
}
}

0 comments on commit 2fc7005

Please sign in to comment.