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