how
This commit is contained in:
parent
0ce38d8719
commit
2de57df9a9
2 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ class AncientCommand extends Command {
|
||||||
try {
|
try {
|
||||||
const data = await request("https://files.projectlounge.pw/meme/", { method: "HEAD", signal: controller.signal });
|
const data = await request("https://files.projectlounge.pw/meme/", { method: "HEAD", signal: controller.signal });
|
||||||
clearTimeout(timeout);
|
clearTimeout(timeout);
|
||||||
return data.headers.location;
|
return `https://files.projectlounge.pw${data.headers.location}`;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (e.name === "AbortError") {
|
if (e.name === "AbortError") {
|
||||||
this.success = false;
|
this.success = false;
|
||||||
|
|
|
@ -11,7 +11,7 @@ class CatCommand extends Command {
|
||||||
try {
|
try {
|
||||||
const data = await request("https://files.projectlounge.pw/cta/", { method: "HEAD", signal: controller.signal });
|
const data = await request("https://files.projectlounge.pw/cta/", { method: "HEAD", signal: controller.signal });
|
||||||
clearTimeout(timeout);
|
clearTimeout(timeout);
|
||||||
return data.headers.location;
|
return `https://files.projectlounge.pw${data.headers.location}`;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (e.name === "AbortError") {
|
if (e.name === "AbortError") {
|
||||||
this.success = false;
|
this.success = false;
|
||||||
|
|
Loading…
Reference in a new issue