1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

improve readability of logout function

Co-Authored-By: dkanada <dkanada@users.noreply.github.com>
This commit is contained in:
Vasily 2019-01-11 23:11:36 +09:00 committed by GitHub
parent 3c0dbeedd5
commit 3eb533d4bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,7 +63,13 @@ var Dashboard = {
logout: function(logoutWithServer) {
function onLogoutDone() {
var loginPage;
AppInfo.isNativeApp ? (loginPage = "selectserver.html", window.ApiClient = null) : loginPage = "login.html", Dashboard.navigate(loginPage)
if (AppInfo.isNativeApp) {
loginPage = "selectserver.html";
window.ApiClient = null;
} else {
loginPage = "login.html";
}
Dashboard.navigate(loginPage);
}!1 === logoutWithServer ? onLogoutDone() : ConnectionManager.logout().then(onLogoutDone)
},
getConfigurationPageUrl: function(name) {