Skip to content

Commit

Permalink
Merge pull request #11 from jhass/patch-1
Browse files Browse the repository at this point in the history
Use authorization header for API call
  • Loading branch information
AngelFQC authored Feb 9, 2020
2 parents 6f3c397 + 158ddda commit 28b50b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion background.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ function update() {
return;
}

fetch(`https://api.github.com/notifications?access_token=${options.accessToken}`, {
fetch('https://api.github.com/notifications', {
headers: {'Authorization': `token ${options.accessToken}`},
cache: 'reload'
})
.then((response) => {
Expand Down

0 comments on commit 28b50b0

Please sign in to comment.