mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
lazy load scripts
This commit is contained in:
parent
ca3ad030a0
commit
463ad6cfb1
13 changed files with 101 additions and 91 deletions
|
@ -208,11 +208,16 @@ var Dashboard = {
|
|||
|
||||
function onLogoutDone() {
|
||||
|
||||
var loginPage = !Dashboard.isConnectMode() ?
|
||||
'login.html' :
|
||||
'connectlogin.html';
|
||||
var loginPage = 'login.html';
|
||||
|
||||
window.location.href = loginPage;
|
||||
if (Dashboard.isConnectMode()) {
|
||||
loginPage = 'connectlogin.html';
|
||||
window.ApiClient = null;
|
||||
} else {
|
||||
|
||||
}
|
||||
|
||||
Dashboard.navigate(loginPage);
|
||||
}
|
||||
|
||||
if (logoutWithServer === false) {
|
||||
|
@ -1511,7 +1516,7 @@ var AppInfo = {};
|
|||
|
||||
function setAppInfo() {
|
||||
|
||||
if (isTouchDevice()) {
|
||||
if (isTouchDevice() && $.browser.mobile) {
|
||||
AppInfo.isTouchPreferred = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue