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

unify appSettings

This commit is contained in:
Luke Pulverenti 2016-03-01 01:02:03 -05:00
parent 5466e3660a
commit 87e23915c8
21 changed files with 208 additions and 408 deletions

View file

@ -132,12 +132,20 @@
var homePageDismissValue = '14';
var homePageTourKey = 'homePageTour';
function displayPreferencesKey() {
if (AppInfo.isNativeApp) {
return 'Emby Mobile';
}
return 'webclient';
}
function dismissWelcome(page, userId) {
getDisplayPreferences('home', userId).then(function (result) {
result.CustomPrefs[homePageTourKey] = homePageDismissValue;
ApiClient.updateDisplayPreferences('home', result, userId, AppSettings.displayPreferencesKey());
ApiClient.updateDisplayPreferences('home', result, userId, displayPreferencesKey());
});
}
@ -316,7 +324,7 @@
function getDisplayPreferences(key, userId) {
return ApiClient.getDisplayPreferences(key, userId, AppSettings.displayPreferencesKey());
return ApiClient.getDisplayPreferences(key, userId, displayPreferencesKey());
}
window.HomePage = {