Skip to content

Commit

Permalink
Merge pull request #245 from bunjiboys/shadow-fix
Browse files Browse the repository at this point in the history
Fixing filter paths trying to fetch invalid URLs
  • Loading branch information
toorshia authored Sep 20, 2016
2 parents b0fc8e4 + dda7b7d commit f3fb1a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions justgage.js
Original file line number Diff line number Diff line change
Expand Up @@ -1027,8 +1027,8 @@ JustGage.prototype.generateShadow = function(svg, defs) {

// set shadow
if (!obj.config.hideInnerShadow) {
obj.canvas.canvas.childNodes[2].setAttribute("filter", "url(#" + sid + ")");
obj.canvas.canvas.childNodes[3].setAttribute("filter", "url(#" + sid + ")");
obj.canvas.canvas.childNodes[2].setAttribute("filter", "url(" + window.location.pathname + "#" + sid + ")");
obj.canvas.canvas.childNodes[3].setAttribute("filter", "url(" + window.location.pathname + "#" + sid + ")");
}

// var clear
Expand Down

0 comments on commit f3fb1a8

Please sign in to comment.