Skip to content

Commit

Permalink
Fixing filter paths trying to fetch invalid URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
Asbjorn Kjaer committed Sep 16, 2016
1 parent b0fc8e4 commit dda7b7d
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 dda7b7d

Please # to comment.