Skip to content

Commit

Permalink
Fix DmitryBaranovskiy#998: broken gradient in old Firefox and Opera
Browse files Browse the repository at this point in the history
  • Loading branch information
ipetropolsky committed Feb 11, 2016
1 parent f803b08 commit 48491c8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dev/raphael.svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,13 @@
return "url('#" + id + "')";
}
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) {
var bbox = o.getBBox(1);
Expand Down

0 comments on commit 48491c8

Please sign in to comment.