Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit41aecf3

Browse files
authored
move auth to headers (#38)
1 parentae57d80 commit41aecf3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎src/content.js‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ function buildUrl({
5454
sort,
5555
order,
5656
per_page,
57-
access_token,
5857
}){
5958
letquery=`${base}?q=`;
6059
query+=`${author ?`+author:${author}` :""}`;
@@ -90,7 +89,6 @@ function contributorCount({
9089
}
9190

9291
letsearchURL=buildUrl({
93-
access_token,
9492
base:"https://api.github.com/search/issues",
9593
order:"asc",
9694
per_page:"1",
@@ -103,7 +101,11 @@ function contributorCount({
103101
sort:"created",
104102
});
105103

106-
returnfetch(searchURL)
104+
returnfetch(searchURL,{
105+
headers:{
106+
Authorization:`token${access_token}`,
107+
},
108+
})
107109
.then((res)=>res.json())
108110
.then(function(json){
109111
if(json.errors||json.message){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp