mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
unify appSettings
This commit is contained in:
parent
5466e3660a
commit
87e23915c8
21 changed files with 208 additions and 408 deletions
|
@ -102,16 +102,10 @@
|
|||
|
||||
return new Promise(function (resolve, reject) {
|
||||
|
||||
if (AppInfo.isNativeApp) {
|
||||
if (Dashboard.isConnectMode()) {
|
||||
|
||||
resolve(navigator.language || navigator.userLanguage);
|
||||
|
||||
} else if (AppInfo.supportsUserDisplayLanguageSetting) {
|
||||
|
||||
console.log('AppInfo.supportsUserDisplayLanguageSetting is true');
|
||||
|
||||
resolve(AppSettings.displayLanguage());
|
||||
|
||||
} else {
|
||||
|
||||
console.log('Getting culture from document');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue