remove console logs
This commit is contained in:
parent
bf8a458b5f
commit
dc88e9f2cc
|
@ -70,7 +70,6 @@ function getGlobalConfig(osuPath) {
|
||||||
path: "",
|
path: "",
|
||||||
get: async (key) => {
|
get: async (key) => {
|
||||||
if (!configFileInfo.path) {
|
if (!configFileInfo.path) {
|
||||||
console.log("config file not loaded");
|
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
const fileStream = await fs.promises.readFile(
|
const fileStream = await fs.promises.readFile(
|
||||||
|
@ -181,11 +180,6 @@ async function getFilesThatNeedUpdate(osuPath, releaseStreamFiles) {
|
||||||
if (
|
if (
|
||||||
fileHashOnDisk.trim().toLowerCase() != fileHash.trim().toLowerCase()
|
fileHashOnDisk.trim().toLowerCase() != fileHash.trim().toLowerCase()
|
||||||
) {
|
) {
|
||||||
console.log({
|
|
||||||
fileOnDisk,
|
|
||||||
fileHashOnDisk,
|
|
||||||
fileHash,
|
|
||||||
});
|
|
||||||
updateFiles.push(updatePatch);
|
updateFiles.push(updatePatch);
|
||||||
}
|
}
|
||||||
} else updateFiles.push(updatePatch);
|
} else updateFiles.push(updatePatch);
|
||||||
|
|
|
@ -3,7 +3,7 @@ const { appName, appVersion } = require("./appInfo.js");
|
||||||
|
|
||||||
const clientId = "1032772293220384808";
|
const clientId = "1032772293220384808";
|
||||||
let richPresence;
|
let richPresence;
|
||||||
let intervalId
|
let intervalId;
|
||||||
|
|
||||||
let currentStatus = {
|
let currentStatus = {
|
||||||
details: " ",
|
details: " ",
|
||||||
|
@ -28,7 +28,6 @@ let currentStatus = {
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
connect: () => {
|
connect: () => {
|
||||||
console.log("Connecting to Discord...");
|
|
||||||
if (!richPresence) {
|
if (!richPresence) {
|
||||||
richPresence = new DiscordRPC.AutoClient({ transport: "ipc" });
|
richPresence = new DiscordRPC.AutoClient({ transport: "ipc" });
|
||||||
richPresence.endlessLogin({ clientId });
|
richPresence.endlessLogin({ clientId });
|
||||||
|
|
2
main.js
2
main.js
|
@ -55,7 +55,6 @@ function startOsuStatus() {
|
||||||
osuCheckInterval = setInterval(async () => {
|
osuCheckInterval = setInterval(async () => {
|
||||||
const osuWindowTitle = windowName.getWindowText("osu!.exe");
|
const osuWindowTitle = windowName.getWindowText("osu!.exe");
|
||||||
if (osuWindowTitle.length < 0) {
|
if (osuWindowTitle.length < 0) {
|
||||||
console.log("No osu! window found");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const firstInstance = osuWindowTitle[0];
|
const firstInstance = osuWindowTitle[0];
|
||||||
|
@ -576,7 +575,6 @@ function createWindow() {
|
||||||
if (presenceEnabled == undefined) {
|
if (presenceEnabled == undefined) {
|
||||||
richPresence.connect();
|
richPresence.connect();
|
||||||
} else {
|
} else {
|
||||||
console.log(presenceEnabled);
|
|
||||||
if (presenceEnabled == "true") {
|
if (presenceEnabled == "true") {
|
||||||
richPresence.connect();
|
richPresence.connect();
|
||||||
}
|
}
|
||||||
|
|
|
@ -150,7 +150,7 @@
|
||||||
id="avatar-menu"
|
id="avatar-menu"
|
||||||
/>
|
/>
|
||||||
<!-- TODO: if user has donator, display heart indicator-->
|
<!-- TODO: if user has donator, display heart indicator-->
|
||||||
{#if $currentUser && $currentUser.id == 1001}
|
{#if $currentUser && $currentUser.donor}
|
||||||
<Indicator
|
<Indicator
|
||||||
class="pointer-events-none"
|
class="pointer-events-none"
|
||||||
color="red"
|
color="red"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
export type User = {
|
export type User = {
|
||||||
id: number;
|
id: number;
|
||||||
|
donor: boolean;
|
||||||
name: string;
|
name: string;
|
||||||
email: string;
|
email: string;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user