aboutsummaryrefslogtreecommitdiff
path: root/build/mojang.js
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2021-06-24 16:18:34 -0500
committermat <github@matdoes.dev>2021-06-24 16:18:34 -0500
commit0e2ee00b2fce07d00eb10ee6936b6ee3e4d848f5 (patch)
treec4e9b9e7c90e55de5b2e2cb0a0c23b4450d1c6aa /build/mojang.js
parentd5445483f1dbbeb4048da5e3ff4a606ce7355bc1 (diff)
downloadskyblock-api-0e2ee00b2fce07d00eb10ee6936b6ee3e4d848f5.tar.gz
skyblock-api-0e2ee00b2fce07d00eb10ee6936b6ee3e4d848f5.tar.bz2
skyblock-api-0e2ee00b2fce07d00eb10ee6936b6ee3e4d848f5.zip
remove console logs
Diffstat (limited to 'build/mojang.js')
-rw-r--r--build/mojang.js3
1 files changed, 0 insertions, 3 deletions
diff --git a/build/mojang.js b/build/mojang.js
index 86e44d8..2d2f694 100644
--- a/build/mojang.js
+++ b/build/mojang.js
@@ -34,7 +34,6 @@ async function profileFromUuid(uuid) {
dataString = await fetchResponse.text();
}
catch (err) {
- console.log('failed reading response text', err);
return { uuid: null, username: null };
}
let data;
@@ -42,11 +41,9 @@ async function profileFromUuid(uuid) {
data = JSON.parse(dataString);
}
catch {
- console.log('mojang response:', dataString);
// if it errors, just return null
return { uuid: null, username: null };
}
- console.log('mojang response:', data);
return {
uuid: data.id,
username: data.name