Skip to content

Commit

Permalink
Fix for #280
Browse files Browse the repository at this point in the history
  • Loading branch information
spatialillusions committed Mar 15, 2023
1 parent 980c049 commit b2af0a7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ms/symbol.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,7 @@ import setOptions from "./symbol/setoptions.js";
Symbol.prototype.setOptions = setOptions;

Symbol.prototype.toDataURL = function() {
return (
"data:image/svg+xml;base64," + window.btoa(encodeURIComponent(this.asSVG()))
);
return "data:image/svg+xml;utf8," + encodeURIComponent(this.asSVG());
};

export default Symbol;

0 comments on commit b2af0a7

Please sign in to comment.