Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
fix: use new CORS proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Reed committed Jul 19, 2021
1 parent ac3c388 commit 56dace4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/api/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class APIDatabase {
console.warn('APIDatabase.getRoot(): failed to get device info, assuming web platform.', err);
}
if (!this.root) {
this.root = 'https://cors-proxy.blaseball-reference.com/database';
this.root = 'https://api.sibr.dev/corsmechanics/www.blaseball.com/database';
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/lib/api/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,14 @@ export class APIStream {
if (this.deviceInfo.platform !== 'web') {
return 'https://www.blaseball.com/events/streamData';
}
return 'https://cors-proxy.blaseball-reference.com/events/streamData';
return 'https://api.sibr.dev/corsmechanics/www.blaseball.com/events/streamData';

}).catch((err) => {
console.error('APIStream(): failed to get device info, assuming web', err);
this.deviceInfo = {
platform: 'web'
} as DeviceInfo;
return 'https://cors-proxy.blaseball-reference.com/events/streamData';
return 'https://api.sibr.dev/corsmechanics/www.blaseball.com/events/streamData';
});

}
Expand Down

0 comments on commit 56dace4

Please sign in to comment.