mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
fix theme videos option always enabled
This commit is contained in:
parent
161892a54e
commit
c1649d6e65
@ -316,20 +316,6 @@ var AppInfo = {};
|
||||
}
|
||||
|
||||
function getSettingsBuilder(UserSettings, layoutManager, browser) {
|
||||
UserSettings.prototype.enableThemeVideos = function (val) {
|
||||
if (val != null) {
|
||||
return this.set('enableThemeVideos', val.toString(), false);
|
||||
}
|
||||
|
||||
val = this.get('enableThemeVideos', false);
|
||||
|
||||
if (val !== 'false') {
|
||||
return !layoutManager.mobile;
|
||||
} else {
|
||||
return !browser.slow;
|
||||
}
|
||||
};
|
||||
|
||||
return UserSettings;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user