use selfhosted tweets/fahrplan json

This commit is contained in:
Jan Koppe 2020-12-23 12:23:27 +00:00
parent 31db1ad426
commit d08ac54520
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ var tweets = {};
/* === EXTERNAL DATA === */
function update_tweets() {
var request = new XMLHttpRequest();
request.open('GET', 'https://api.oct.re/tweets-rc3.json', true);
request.open('GET', 'tweets-rc3.json', true);
request.onload = function() {
if (this.status >= 200 && this.status < 400) {
tweets = JSON.parse(this.response);
@ -61,7 +61,7 @@ function update_tweets() {
function update_fahrplan() {
var request = new XMLHttpRequest();
request.open('GET', 'https://api.oct.re/fahrplan.json', true);
request.open('GET', 'fahrplan.json', true);
request.onload = function() {
if (this.status >= 200 && this.status < 400) {
fahrplan = JSON.parse(this.response);