Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

Commit

Permalink
fix(portal): use relative path for the default user icon
Browse files Browse the repository at this point in the history
  • Loading branch information
tcompiegne committed Jul 24, 2017
1 parent d959952 commit 94ed9d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/avatar/user-avatar.directive.ts
Expand Up @@ -28,7 +28,7 @@ class UserAvatarDirective {
image.onerror = function () {
deferred.resolve(false);
// Default image
element.attr('src', '/assets/default_photo.png');
element.attr('src', 'assets/default_photo.png');
};
image.onload = function () {
deferred.resolve(true);
Expand Down
2 changes: 1 addition & 1 deletion src/portal/components/navbar/navbar.component.ts
Expand Up @@ -47,7 +47,7 @@ export const NavbarComponent: ng.IComponentOptions = {
};

vm.getUserPicture = function() {
return '/assets/default_user_picture.png';
return 'assets/default_user_picture.png';
};
}
};

0 comments on commit 94ed9d9

Please sign in to comment.