mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
use shared usersettings
This commit is contained in:
parent
f1eb4b1ad8
commit
5ca7a2ad34
12 changed files with 114 additions and 44 deletions
|
@ -1904,6 +1904,7 @@ var AppInfo = {};
|
|||
define("scrollHelper", [embyWebComponentsBowerPath + "/scrollhelper"], returnFirstDependency);
|
||||
|
||||
define("appSettings", [embyWebComponentsBowerPath + "/appsettings"], updateAppSettings);
|
||||
define("userSettings", [embyWebComponentsBowerPath + "/usersettings"], returnFirstDependency);
|
||||
|
||||
// alias
|
||||
define("historyManager", [], function () {
|
||||
|
@ -1934,6 +1935,12 @@ var AppInfo = {};
|
|||
return Globalize;
|
||||
});
|
||||
|
||||
define('apiClientResolver', [], function () {
|
||||
return function () {
|
||||
return window.ApiClient;
|
||||
};
|
||||
});
|
||||
|
||||
define('dialogText', ['globalize'], getDialogText());
|
||||
}
|
||||
|
||||
|
@ -1948,25 +1955,6 @@ var AppInfo = {};
|
|||
return appSettings.get('externalplayers') == 'true';
|
||||
};
|
||||
|
||||
appSettings.enableCinemaMode = function (val) {
|
||||
|
||||
if (val != null) {
|
||||
appSettings.set('enableCinemaMode', val.toString());
|
||||
}
|
||||
|
||||
val = appSettings.get('enableCinemaMode');
|
||||
|
||||
if (val) {
|
||||
return val != 'false';
|
||||
}
|
||||
|
||||
if (browserInfo.mobile) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
};
|
||||
|
||||
return appSettings;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue