From 163ccdfe0075b17e4d27ed2391c7fd9463d177dc Mon Sep 17 00:00:00 2001 From: Martin Quarda Date: Wed, 9 Oct 2024 23:55:31 +0200 Subject: [PATCH] logging --- frontend/src/scripts/index.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/frontend/src/scripts/index.js b/frontend/src/scripts/index.js index b7cd236..1cedc5c 100644 --- a/frontend/src/scripts/index.js +++ b/frontend/src/scripts/index.js @@ -89,11 +89,9 @@ class Main extends Component { status: "failed", }) } else { - if(api_endpoint==="/api/login"){ - fetch(addr_prefix + "/api/login_status").then(resp => resp.json()).then(json => { - this.setState({login_status: json}) - }) - } + fetch(addr_prefix + "/api/login_status").then(resp => resp.json()).then(json => { + this.setState({login_status: json}) + }) this.setState({ status_text: data.success, status: "success",