From dda7b7d2730f273d5af9bd62273f456fd6f08a6f Mon Sep 17 00:00:00 2001 From: Asbjorn Kjaer Date: Fri, 16 Sep 2016 16:59:26 -0700 Subject: [PATCH] Fixing filter paths trying to fetch invalid URLs --- justgage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/justgage.js b/justgage.js index e4167cd..ba554cf 100644 --- a/justgage.js +++ b/justgage.js @@ -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