mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 06:43:24 +00:00
hopefully fix beta.coriolis.edcd.io
This commit is contained in:
@@ -1,6 +1,14 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user