Skip to content

Commit

Permalink
[update] replace api
Browse files Browse the repository at this point in the history
  • Loading branch information
zephyraft committed Jul 8, 2022
1 parent 52b08a8 commit 17166e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const svgToPng = async (svgContainer, callback) => {
const imgDom = document.createElement("img");
imgDom.setAttribute(
"src",
"data:image/svg+xml;base64," + btoa(unescape(encodeURIComponent(svgData)))
"data:image/svg+xml;base64," + btoa(decodeURI(encodeURIComponent(svgData)))
);

const canvasDom = document.createElement("canvas");
Expand Down

0 comments on commit 17166e2

Please sign in to comment.