1
0
Fork 0

remove some console.log()

This commit is contained in:
ChaotiCryptidz 2022-01-16 20:29:57 +00:00
parent 26fa908648
commit 3e48cb5bda
7 changed files with 2 additions and 8 deletions

View file

@ -59,7 +59,6 @@ async function onLoad(): Promise<void> {
}
setInterval(async () => {
console.log(getCurrentUrl());
if (getCurrentUrl() != "/unseal") {
// TODO: check if api is accessable, not if its not set
if (settings.apiURL.length == 0) {

View file

@ -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
}

View file

@ -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;

View file

@ -178,8 +178,6 @@ export class KeyValueList extends Component<DefaultPageProps, KeyValueListState>
<button
class="uk-button uk-button-primary"
onClick={() => {
console.log(kvNewURL(baseMount, secretPath));
route(kvNewURL(baseMount, secretPath));
}}
>

View file

@ -93,7 +93,6 @@ export class Secrets extends Component<DefaultPageProps, SecretsState> {
{Array.from(this.state.mountsMap).map((args: [string, MountType]) => {
const baseMount = args[0];
const mount = args[1];
console.log(baseMount, mount);
if (isSupportedMount(mount)) {
return <MountLink mount={mount} baseMount={baseMount} />;
}

View file

@ -134,7 +134,6 @@ export class TOTPNewGeneratedForm extends Component<
digits: parseInt(data.get("digits") as string),
};
console.log(parms);
try {
const ret = await this.props.api.addNewTOTP(this.props.baseMount, parms);
if (!isExported) {

View file

@ -37,7 +37,6 @@ export function kvViewURL(
}
export function kvListURL(baseMount: string, secretPath: string[]): string {
console.log(baseMount, secretPath);
return `/secrets/kv/list/${baseMount}/${secretPath.join("/")}`;
}