Skip to content

Commit

Permalink
fix fb-color & fb-bgColor replace error
Browse files Browse the repository at this point in the history
  • Loading branch information
stiekel committed Apr 11, 2016
1 parent a7a834f commit 665ccdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/angular-image-404.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ angular.module('angular-image-404', [])
function getDefaultImagePlaceholder() {
var width = angular.element(element[0]).attr('max-width') || element[0].offsetWidth || 120;
var height = angular.element(element[0]).attr('max-height') || element[0].offsetHeight || 120;
var bgcolor = attributes.fbBgcolor.replace('#', '') || "";
var color = attributes.fbColor.replace('#', '') || "";
var bgcolor = attributes.fbBgcolor ? attributes.fbBgcolor.replace('#', '') : "";
var color = attributes.fbColor ? attributes.fbColor.replace('#', '') : "";
var text = attributes.fbText || "";
var result = '';
var protocol = window.location.href.split('://').shift();
Expand Down

0 comments on commit 665ccdf

Please sign in to comment.