chore: remove all console.log
This commit is contained in:
+1
-4
@@ -44,8 +44,7 @@ export class Config {
|
||||
this.encrypt && this.crypto ? this.crypto.decrypt(fileStream) : fileStream
|
||||
) as Record<string, unknown>;
|
||||
this.config = decryptedJSON;
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
} catch {
|
||||
this.config = {};
|
||||
await this.save();
|
||||
}
|
||||
@@ -65,13 +64,11 @@ export class Config {
|
||||
}
|
||||
|
||||
value(key: string) {
|
||||
console.log('Accessing config key:', key, this.config[key]);
|
||||
return {
|
||||
set: <T>(val: T) => {
|
||||
this.config[key] = val;
|
||||
},
|
||||
exists: () => {
|
||||
console.log('Checking existence of key:', key, this.config[key] !== undefined);
|
||||
return this.config[key] !== undefined;
|
||||
},
|
||||
get: <T>(fallback: T): T => {
|
||||
|
||||
@@ -8,7 +8,6 @@ export function estimateRefreshRate(): Promise<number> {
|
||||
frames++;
|
||||
|
||||
if (now - last >= 1000) {
|
||||
console.log(`Estimated Refresh Rate: ${frames - 2} FPS`);
|
||||
resolve(frames - 2);
|
||||
} else {
|
||||
requestAnimationFrame(loop);
|
||||
|
||||
@@ -82,9 +82,6 @@ export const getEZPPLauncherStreams = async () => {
|
||||
if (!resp.error) {
|
||||
return resp.data.streams;
|
||||
}
|
||||
|
||||
console.log(resp.error);
|
||||
|
||||
return undefined;
|
||||
};
|
||||
|
||||
|
||||
@@ -44,7 +44,6 @@ export const formatTimeReadable = (initialSeconds: number) => {
|
||||
};
|
||||
|
||||
export const releaseStreamToReadable = (releaseStream: string) => {
|
||||
console.log(releaseStream.replaceAll(' ', '').toLowerCase());
|
||||
if (releaseStream.replaceAll(' ', '').toLowerCase() === 'cuttingedge') return 'Cutting Edge';
|
||||
return 'Stable';
|
||||
};
|
||||
|
||||
@@ -286,7 +286,6 @@
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
launchError = err as Error;
|
||||
launching.set(false);
|
||||
return;
|
||||
@@ -539,7 +538,6 @@
|
||||
await getCurrentWindow().show();
|
||||
if (presenceUpdater) {
|
||||
window.clearInterval(presenceUpdater);
|
||||
console.log('clearing discord presence...');
|
||||
try {
|
||||
await Promise.all([
|
||||
presence.updateUser({
|
||||
@@ -553,7 +551,6 @@
|
||||
}),
|
||||
]);
|
||||
} catch {}
|
||||
console.log('discord presence cleared...');
|
||||
}
|
||||
await new Promise((res) => setTimeout(res, 1000));
|
||||
await replaceUIFiles(osuPath, true);
|
||||
|
||||
Reference in New Issue
Block a user