diff options
Diffstat (limited to 'src/mojang.ts')
-rw-r--r-- | src/mojang.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mojang.ts b/src/mojang.ts index f73fe99..1d5809f 100644 --- a/src/mojang.ts +++ b/src/mojang.ts @@ -76,7 +76,7 @@ export async function profileFromUsername(username: string): Promise<MojangApiRe return await profileFromUsername(username) } - let data + let data = null const rawData = await fetchResponse.text() try { data = JSON.parse(rawData) @@ -84,6 +84,7 @@ export async function profileFromUsername(username: string): Promise<MojangApiRe if (!data?.id) { + console.log('no id returned from mojang', rawData) // return { uuid: null, username: null } return await profileFromUsernameAlternative(username) } |