remove console logs

This commit is contained in:
HorizonCode 2024-01-22 12:53:59 +01:00
parent bf8a458b5f
commit dc88e9f2cc
5 changed files with 3 additions and 11 deletions

View File

@ -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);

View File

@ -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 });

View File

@ -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();
}

View File

@ -150,7 +150,7 @@
id="avatar-menu"
/>
<!-- TODO: if user has donator, display heart indicator-->
{#if $currentUser && $currentUser.id == 1001}
{#if $currentUser && $currentUser.donor}
<Indicator
class="pointer-events-none"
color="red"

View File

@ -1,5 +1,6 @@
export type User = {
id: number;
donor: boolean;
name: string;
email: string;
};