mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add suggested changes and fix a return statement
This commit is contained in:
parent
60b70ad0c9
commit
cb9f250d32
3 changed files with 22 additions and 15 deletions
|
@ -213,9 +213,15 @@ var Dashboard = {
|
|||
|
||||
function getSettingsBuilder(UserSettings, layoutManager, browser) {
|
||||
UserSettings.prototype.enableThemeVideos = function(val) {
|
||||
return null != val
|
||||
? this.set("enableThemeVideos", val.toString(), !1)
|
||||
: (val = this.get("enableThemeVideos", !1), val ? "false" !== val : !layoutManager.mobile && !browser.slow);
|
||||
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…
Add table
Add a link
Reference in a new issue