Skip to content

Commit 012cd82

Browse files
fix bug
1 parent d4ebfbe commit 012cd82

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ export class TempMail {
9494
*/
9595
async checkCustomDomainLegacy(domain: string, token: string): Promise<Email[]> {
9696

97-
const r = await fetch(`https://api.tempmail.lol/custom/${token}/${domain}`);
97+
const raw = (await fetch(`https://api.tempmail.lol/custom/${token}/${domain}`));
98+
const r = await raw.json();
9899

99100
let emails: Email[];
100101

0 commit comments

Comments
 (0)