Skip to content

Commit

Permalink
fix image download bug for mobile devices
Browse files Browse the repository at this point in the history
  • Loading branch information
NotNeelPatel committed Jul 24, 2024
1 parent 0c06871 commit ccc8240
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/convert.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,9 @@ function convertImage(){

//Download function. Works on desktop browsers only at the moment.
function downloadImage(){
image = canvas.toDataURL("image/png").replace("image/png", "image/octet-stream");
image = canvas.toDataURL("image/png");
var link = document.createElement('a');
link.download = ("wallpaper-theme-converter.png");
link.download = "wallpaper-theme-converter.png";
link.href = image;
link.click();
}
Expand Down

0 comments on commit ccc8240

Please sign in to comment.