mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-10 15:15:34 +00:00
hopefully fix beta.coriolis.edcd.io
This commit is contained in:
@@ -1,6 +1,14 @@
|
|||||||
import request from 'superagent';
|
import request from 'superagent';
|
||||||
|
|
||||||
const agent = request.agent();
|
let agent;
|
||||||
|
try {
|
||||||
|
agent = request.agent(); // apparently this crashes somehow
|
||||||
|
} catch (e) {
|
||||||
|
console.error(e);
|
||||||
|
}
|
||||||
|
if (!agent) {
|
||||||
|
agent = request;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Shorten a URL
|
* Shorten a URL
|
||||||
|
|||||||
Reference in New Issue
Block a user