Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Commit

Permalink
Change download fallback for iOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
exupero committed May 8, 2019
1 parent 7c718c5 commit ba5c562
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/saveSvgAsPng.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,9 @@
saveLink.click();
document.body.removeChild(saveLink);
} else {
window.open(uri, '_temp', 'menubar=no,toolbar=no,status=no');
const popup = window.open();
popup.document.title = name;
popup.location.replace(uri);
}
}
};
Expand Down

0 comments on commit ba5c562

Please sign in to comment.