mirror of
https://github.com/bitwarden/web
synced 2025-12-06 00:03:28 +00:00
12 lines
300 B
JavaScript
12 lines
300 B
JavaScript
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);
|
|
});
|
|
};
|
|
});
|