From dc88e9f2ccc36fb8d87daf5c05ac198ff31cfe1c Mon Sep 17 00:00:00 2001 From: HorizonCode Date: Mon, 22 Jan 2024 12:53:59 +0100 Subject: [PATCH] remove console logs --- electron/osuUtil.js | 6 ------ electron/richPresence.js | 3 +-- main.js | 2 -- src/App.svelte | 2 +- src/types/user.ts | 1 + 5 files changed, 3 insertions(+), 11 deletions(-) diff --git a/electron/osuUtil.js b/electron/osuUtil.js index bf62e1f..8a6ce3b 100644 --- a/electron/osuUtil.js +++ b/electron/osuUtil.js @@ -70,7 +70,6 @@ function getGlobalConfig(osuPath) { path: "", get: async (key) => { if (!configFileInfo.path) { - console.log("config file not loaded"); return ""; } const fileStream = await fs.promises.readFile( @@ -181,11 +180,6 @@ async function getFilesThatNeedUpdate(osuPath, releaseStreamFiles) { if ( fileHashOnDisk.trim().toLowerCase() != fileHash.trim().toLowerCase() ) { - console.log({ - fileOnDisk, - fileHashOnDisk, - fileHash, - }); updateFiles.push(updatePatch); } } else updateFiles.push(updatePatch); diff --git a/electron/richPresence.js b/electron/richPresence.js index a3d8353..40d35ed 100644 --- a/electron/richPresence.js +++ b/electron/richPresence.js @@ -3,7 +3,7 @@ const { appName, appVersion } = require("./appInfo.js"); const clientId = "1032772293220384808"; let richPresence; -let intervalId +let intervalId; let currentStatus = { details: " ", @@ -28,7 +28,6 @@ let currentStatus = { module.exports = { connect: () => { - console.log("Connecting to Discord..."); if (!richPresence) { richPresence = new DiscordRPC.AutoClient({ transport: "ipc" }); richPresence.endlessLogin({ clientId }); diff --git a/main.js b/main.js index 0ad0d9c..47ef2f4 100644 --- a/main.js +++ b/main.js @@ -55,7 +55,6 @@ function startOsuStatus() { osuCheckInterval = setInterval(async () => { const osuWindowTitle = windowName.getWindowText("osu!.exe"); if (osuWindowTitle.length < 0) { - console.log("No osu! window found"); return; } const firstInstance = osuWindowTitle[0]; @@ -576,7 +575,6 @@ function createWindow() { if (presenceEnabled == undefined) { richPresence.connect(); } else { - console.log(presenceEnabled); if (presenceEnabled == "true") { richPresence.connect(); } diff --git a/src/App.svelte b/src/App.svelte index 7f31bce..3cfd84f 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -150,7 +150,7 @@ id="avatar-menu" /> - {#if $currentUser && $currentUser.id == 1001} + {#if $currentUser && $currentUser.donor}