hopefully fix beta.coriolis.edcd.io

This commit is contained in:
willyb321
2018-08-07 07:47:47 +10:00
parent 012a203c4a
commit 82c0f6fc0f

View File

@@ -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