From 3e48cb5bdadf399d5cb1e33ad63e708f6877d4ca Mon Sep 17 00:00:00 2001 From: ChaotiCryptidz Date: Sun, 16 Jan 2022 20:29:57 +0000 Subject: [PATCH] remove some console.log() --- src/main.tsx | 1 - src/pageUtils.ts | 1 - src/ui/pages/Secrets/KeyValue/KeyValueEdit.tsx | 3 ++- src/ui/pages/Secrets/KeyValue/KeyValueList.tsx | 2 -- src/ui/pages/Secrets/SecretsHome.tsx | 1 - src/ui/pages/Secrets/TOTP/TOTPNewGenerated.tsx | 1 - src/ui/pages/pageLinks.tsx | 1 - 7 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/main.tsx b/src/main.tsx index 81440cb..393ed22 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -59,7 +59,6 @@ async function onLoad(): Promise { } setInterval(async () => { - console.log(getCurrentUrl()); if (getCurrentUrl() != "/unseal") { // TODO: check if api is accessable, not if its not set if (settings.apiURL.length == 0) { diff --git a/src/pageUtils.ts b/src/pageUtils.ts index c5980a1..bbc32c7 100644 --- a/src/pageUtils.ts +++ b/src/pageUtils.ts @@ -9,7 +9,6 @@ export async function pageChecks(url: string, api: API, settings: Settings): Pro if (url.startsWith("/set_language")) return; if (settings.language.length == 0) { - console.log("set languge") route("/set_language", true); return true } diff --git a/src/ui/pages/Secrets/KeyValue/KeyValueEdit.tsx b/src/ui/pages/Secrets/KeyValue/KeyValueEdit.tsx index 07f0b17..d2feaef 100644 --- a/src/ui/pages/Secrets/KeyValue/KeyValueEdit.tsx +++ b/src/ui/pages/Secrets/KeyValue/KeyValueEdit.tsx @@ -45,7 +45,8 @@ export function validateData(str: string, syntax = "json"): boolean { try { parseData(str, syntax); } catch (e) { - console.log(e); + let err = e as Error; + setErrorText(err.message); return false; } return true; diff --git a/src/ui/pages/Secrets/KeyValue/KeyValueList.tsx b/src/ui/pages/Secrets/KeyValue/KeyValueList.tsx index 95817de..d056b5e 100644 --- a/src/ui/pages/Secrets/KeyValue/KeyValueList.tsx +++ b/src/ui/pages/Secrets/KeyValue/KeyValueList.tsx @@ -178,8 +178,6 @@ export class KeyValueList extends Component