Skip to content

Commit 00d085f

Browse files
authored
Merge pull request #2 from 3F/issue1
Request mode to api.github.com
2 parents 6e0f572 + fc61a91 commit 00d085f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/js/GhrMeter.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export default class GhrMeter
8181

8282
fetch(url, {
8383
method: "GET",
84-
mode: "same-origin",
84+
mode: "cors",
8585
cache: "no-cache",
8686
})
8787
.then(response => response.json())
@@ -169,4 +169,4 @@ export default class GhrMeter
169169
console.log(stamp + msg, args);
170170
}
171171
}
172-
}
172+
}

0 commit comments

Comments
 (0)