fix theme videos option always enabled

This commit is contained in:
dkanada 2019-03-22 03:21:26 -07:00
parent 161892a54e
commit c1649d6e65

View File

@ -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;
}