Skip to content

Commit

Permalink
get files from Backblaze
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Oct 8, 2023
1 parent 668b312 commit 7ced844
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

(function() {
"use strict";
const host = "https://quic-interop-runner.s3.us-east-005.backblazeb2.com";
const map = { client: {}, server: {}, test: {} };
const color_type = { succeeded: "success", unsupported: "secondary disabled", failed: "danger"};

Expand Down Expand Up @@ -272,7 +273,7 @@
document.getElementsByTagName("body")[0].classList.add("loading");
var xhr = new XMLHttpRequest();
xhr.responseType = 'json';
xhr.open('GET', 'logs/' + dir + '/result.json');
xhr.open('GET', `${host}/${dir}/result.json`);
xhr.onreadystatechange = function() {
if(xhr.readyState !== XMLHttpRequest.DONE) return;
if(xhr.status !== 200) {
Expand All @@ -290,7 +291,7 @@
// enable loading of old runs
var xhr = new XMLHttpRequest();
xhr.responseType = 'json';
xhr.open('GET', 'logs/logs.json');
xhr.open('GET', `${host}/logs.json`);
xhr.onreadystatechange = function() {
if(xhr.readyState !== XMLHttpRequest.DONE) return;
if(xhr.status !== 200) {
Expand Down

0 comments on commit 7ced844

Please sign in to comment.