remove console logs
This commit is contained in:
parent
bf8a458b5f
commit
dc88e9f2cc
|
@ -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);
|
||||
|
|
|
@ -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 });
|
||||
|
|
2
main.js
2
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();
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
export type User = {
|
||||
id: number;
|
||||
donor: boolean;
|
||||
name: string;
|
||||
email: string;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user