local sync

This commit is contained in:
Flummi
2019-04-24 15:26:39 +02:00
parent 67b0fc291a
commit 175b994be3
12 changed files with 160 additions and 35 deletions

View File

@@ -61,7 +61,7 @@ const sandbox = (lang, code) => {
method: "POST",
body: langs[lang]
};
fetch("http://rextester.com/rundotnet/api", options)
fetch("https://rextester.com/rundotnet/api", options)
.then(res => res.json())
.then(body => {
if (body.Errors) {
@@ -76,7 +76,10 @@ const sandbox = (lang, code) => {
if (body.Result.length === 0)
return reject("lol keine Ausgabe");
resolve(body.Result);
}).catch(err => reject("Error!"));
}).catch(err => {
console.log(err);
reject("Error!");
});
});
};
@@ -92,4 +95,4 @@ const bfgen = text => {
return out;
};
export { maxoutput, sandbox, bfgen, hsimports };
export { maxoutput, sandbox, bfgen, hsimports };