Switch to using .catch(()=>{}) instead of try catch
This commit is contained in:
commit
0113024be6
1 changed files with 1 additions and 1 deletions
|
@ -5,5 +5,5 @@ import $to_relative "/js/sync/sync.js"
|
|||
import $to_relative "/js/chat.js"
|
||||
|
||||
if (!localStorage.getItem("access_token")) {
|
||||
location.assign("./login")
|
||||
location.assign("./login/")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue