Commit 48491c87 by ipetropolsky

Fix #998: broken gradient in old Firefox and Opera

parent f803b084
...@@ -160,7 +160,13 @@ ...@@ -160,7 +160,13 @@
return "url('#" + id + "')"; return "url('#" + id + "')";
} }
var location = document.location; var location = document.location;
return "url('" + location.origin + location.pathname + location.search + "#" + id + "')"; var locationString = (
location.protocol + '//' +
location.host +
location.pathname +
location.search
);
return "url('" + locationString + "#" + id + "')";
}, },
updatePosition = function (o) { updatePosition = function (o) {
var bbox = o.getBBox(1); var bbox = o.getBBox(1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment