Base64-encode the SVG markers, seems to make Firefox happier.

This commit is contained in:
Oliver Jowett 2016-07-03 14:44:05 +01:00
parent 381ce5f280
commit 2bbc117528

View file

@ -113,5 +113,5 @@ function svgPathToSvg(path, size, stroke, width, fill) {
function svgPathToURI(path, size, stroke, width, fill) {
return "data:image/svg+xml," + svgPathToSvg(path, size, stroke, width, fill)
return "data:image/svg+xml;base64," + btoa(svgPathToSvg(path, size, stroke, width, fill));
}