Fix lint issue (2)
This commit is contained in:
parent
0d4e75202d
commit
fe54217f64
@ -15,10 +15,10 @@
|
|||||||
|
|
||||||
if(!errorScreen.buttonTitle && errorScreen.urlToRedirect) window.location.replace(errorScreen.urlToRedirect);
|
if(!errorScreen.buttonTitle && errorScreen.urlToRedirect) window.location.replace(errorScreen.urlToRedirect);
|
||||||
|
|
||||||
async function click() {
|
function click() {
|
||||||
if (errorScreen.urlToRedirect) {
|
if (errorScreen.urlToRedirect) {
|
||||||
if (errorScreen.urlToRedirect === '/login') await connectionManager.logout().then().catch();
|
if (errorScreen.urlToRedirect === '/login') void connectionManager.logout();
|
||||||
window.location.replace(errorScreen.urlToRedirect);
|
else window.location.replace(errorScreen.urlToRedirect);
|
||||||
} else if (errorScreen.type === "redirect" && window.history.length > 2) history.back();
|
} else if (errorScreen.type === "redirect" && window.history.length > 2) history.back();
|
||||||
else window.location.reload();
|
else window.location.reload();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user