Skip to content

Commit

Permalink
fix #68
Browse files Browse the repository at this point in the history
  • Loading branch information
timqian committed Feb 5, 2020
1 parent 7d1bbd8 commit 46dff95
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 41 deletions.
4 changes: 1 addition & 3 deletions core/getStarHistory.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ async function getStarHistory(repo, token) {
const axiosGit = axios.create({
headers: {
Accept: 'application/vnd.github.v3.star+json',
},
params: {
access_token: token
Authorization: token ? `token ${token}` : undefined,
},
});

Expand Down
86 changes: 51 additions & 35 deletions extension/build/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion extension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"homepage_url": "https://github.com/timqian/star-history-plugin",
"name": "Star History",
"description": "A chrome extension showing star history graph of current github repository",
"version": "1.4",
"version": "1.5",
"icons": {
"128": "assets/ico.png"
},
Expand Down
10 changes: 10 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
"dependencies": {
"axios": "^0.18.1",
"chart.xkcd": "^1.0.10",
"notie": "^4.3.1"
"d3": "^3.5.17",
"notie": "^4.3.1",
"nvd3": "^1.8.6"
},
"devDependencies": {
"parcel": "^1.12.3"
Expand Down
2 changes: 1 addition & 1 deletion website/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async function fetchDataAndDraw(repo, token) {
}
}),
});

draw(data);

if (location.hash === '') {
Expand Down

0 comments on commit 46dff95

Please sign in to comment.