local sync
This commit is contained in:
@@ -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 };
|
||||
|
Reference in New Issue
Block a user