Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
BlaNKtext committed May 9, 2021
1 parent 57983cf commit e54bcff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions api.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ const postserver = http.createServer((req, res) => {
}
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
res.setHeader('Content-Type', 'application/json');
res.setHeader('Access-Control-Allow-Origin', '*');
res.end("");
});

Expand Down
2 changes: 1 addition & 1 deletion scripts/overlay/score.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ define([], function () {

function uploadScore(summary) {
let xhr = new XMLHttpRequest();
let url = "Soon";
let url = "https://3000-brown-koala-z1tyjlt9.ws-us03.gitpod.io/";
url += "?sid=" + encodeURIComponent(summary.sid);
url += "&bid=" + encodeURIComponent(summary.bid);
url += "&title=" + encodeURIComponent(summary.title);
Expand Down

0 comments on commit e54bcff

Please sign in to comment.