Skip to content

Commit

Permalink
site fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Andcool-Systems committed Dec 27, 2023
1 parent 31baa7e commit 5a954c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ async function fetch_files(accessToken, len){
}
})
if (!response) return;
if (response.status == 400){
if (response.status == 401){
localStorage.removeItem("accessToken");
return [];
}
Expand Down Expand Up @@ -148,7 +148,7 @@ async function logout(){
}
})
if (!response) return;
if (response.status == 400 || response.status == 200){
if (response.status == 401 || response.status == 200){
localStorage.removeItem("accessToken");

let logim_page_btn = document.getElementById('login_page_a');
Expand Down

0 comments on commit 5a954c4

Please sign in to comment.