This commit is contained in:
parent
177d9f245a
commit
ef78036a72
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ export default class ChangelogDialog extends React.Component {
|
||||||
for (let i=0; i<REPOS.length; i++) {
|
for (let i=0; i<REPOS.length; i++) {
|
||||||
const oldVersion = version2[2*i];
|
const oldVersion = version2[2*i];
|
||||||
const newVersion = version[2*i];
|
const newVersion = version[2*i];
|
||||||
const url = `https://api.github.com/repos/${REPOS[i]}/compare/${oldVersion}...${newVersion}`;
|
const url = `https://riot.im/github/repos/${REPOS[i]}/compare/${oldVersion}...${newVersion}`;
|
||||||
request(url, (err, response, body) => {
|
request(url, (err, response, body) => {
|
||||||
if (response.statusCode < 200 || response.statusCode >= 300) {
|
if (response.statusCode < 200 || response.statusCode >= 300) {
|
||||||
this.setState({ [REPOS[i]]: response.statusText });
|
this.setState({ [REPOS[i]]: response.statusText });
|
||||||
|
|
Loading…
Reference in a new issue