From 79dc76516a34601ca15bb539daeef811aa0c225f Mon Sep 17 00:00:00 2001 From: 0xa663 <142121896+0xa663@users.noreply.github.com> Date: Fri, 16 Feb 2024 11:24:38 +0100 Subject: [PATCH] Remove console logs --- dist/user-script.js | 6 ------ src/UI/components/Popup.tsx | 2 -- src/UI/components/main.tsx | 3 --- src/utils.ts | 1 - 4 files changed, 12 deletions(-) diff --git a/dist/user-script.js b/dist/user-script.js index 368f9ed..759d755 100644 --- a/dist/user-script.js +++ b/dist/user-script.js @@ -30824,7 +30824,6 @@ return numberFormatter ? numberFormatter.format(number) : number.toString(); } function processNumberEvent(ev, cb) { - console.error(ev, ev.target.value); ev.preventDefault(); ev.stopPropagation(); if (ev.target.value === "") { @@ -35655,8 +35654,6 @@ } } }); - } else { - console.error("Missing reference"); } }); } @@ -36864,11 +36861,8 @@ componentDidMount() { this.props.store.on(7 /* Any */, this.update); this.update(); - console.error(this.STORAGE_KEY); this.props.storage.getItem(this.STORAGE_KEY).then((data) => { - console.error(data, this.STORAGE_KEY, data !== null, !this.destroyed); if (data !== null && !this.destroyed) { - console.error("loadingnn????????", data); this.setState(data); } }); diff --git a/src/UI/components/Popup.tsx b/src/UI/components/Popup.tsx index 164e0a6..b9e8c54 100644 --- a/src/UI/components/Popup.tsx +++ b/src/UI/components/Popup.tsx @@ -130,8 +130,6 @@ export class Popup { } } }); - } else { - console.error("Missing reference"); } }); } diff --git a/src/UI/components/main.tsx b/src/UI/components/main.tsx index 94d82fd..d837b41 100644 --- a/src/UI/components/main.tsx +++ b/src/UI/components/main.tsx @@ -47,11 +47,8 @@ export class Main extends React.Component { componentDidMount() { this.props.store.on(StoreEvents.Any, this.update); this.update(); - console.error(this.STORAGE_KEY); this.props.storage.getItem(this.STORAGE_KEY).then(data => { - console.error(data, this.STORAGE_KEY, data !== null, !this.destroyed); if (data !== null && !this.destroyed) { - console.error("loadingnn????????", data); this.setState(data); } }); diff --git a/src/utils.ts b/src/utils.ts index ae1a677..c95a701 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -344,7 +344,6 @@ export function formatNumber(number: number) { } export function processNumberEvent(ev: React.ChangeEvent, cb: (n: number) => void) { - console.error(ev, ev.target.value); ev.preventDefault(); ev.stopPropagation(); if(ev.target.value === "") {