Be explicit about backgroundImage existance
This commit is contained in:
@@ -132,7 +132,10 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
|
||||
|
||||
$scope.config = Client.getConfig();
|
||||
|
||||
document.getElementById('mainContentContainer').style.backgroundImage = 'url("' + Client.getBackgroundImageUrl() + '")';
|
||||
if (Client.getUserInfo().hasBackgroundImage) {
|
||||
document.getElementById('mainContentContainer').style.backgroundImage = 'url("' + Client.getBackgroundImageUrl() + '")';
|
||||
document.getElementById('mainContentContainer').classList.add('has-background');
|
||||
}
|
||||
|
||||
$scope.initialized = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user