1
0
mirror of https://github.com/bitwarden/web synced 2025-12-12 06:13:28 +00:00

icons for vault listing

This commit is contained in:
Kyle Spearrin
2017-10-10 21:55:58 -04:00
parent 7a36f13034
commit f828288b84
7 changed files with 62 additions and 4 deletions

View File

@@ -0,0 +1,11 @@
angular
.module('bit.directives')
.directive('fallbackSrc', function () {
return function (scope, element, attrs) {
var el = $(element);
el.bind('error', function (event) {
el.attr('src', attrs.fallbackSrc);
});
};
});