Call reset avatar to trigger favicon change

This commit is contained in:
Johannes Zellner
2016-01-20 17:15:13 +01:00
parent 8d192dc992
commit f48cbb457b

View File

@@ -185,8 +185,7 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
if (error) {
console.error('Unable to change developer mode.', error);
} else {
Client.avatar = Client.apiOrigin + '/api/v1/cloudron/avatar?' + String(Math.random()).slice(2);
console.log('set new avatar', Client.avatar)
Client.resetAvatar();
}
$('#avatarChangeModal').modal('hide');