mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 20:11:24 +01:00
Don't add links to document body
This commit is contained in:
parent
f833ce9bb3
commit
6861de92a0
1 changed files with 0 additions and 2 deletions
|
|
@ -122,7 +122,6 @@ const saveScreenshot = async function() {
|
|||
const link = document.createElement("a");
|
||||
link.download = getFileName() + ".jpeg";
|
||||
link.href = URL;
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
tip(`Screenshot is saved. Open "Downloads" screen (CTRL + J) to check`, true, "success", 7000);
|
||||
window.setTimeout(() => window.URL.revokeObjectURL(URL), 5000);
|
||||
|
|
@ -133,7 +132,6 @@ const saveOBJ = async function() {
|
|||
const link = document.createElement("a");
|
||||
link.download = getFileName() + ".obj";
|
||||
link.href = URL;
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
tip(`OBJ is saved. Open "Downloads" screen (CTRL + J) to check`, true, "success", 7000);
|
||||
window.setTimeout(() => window.URL.revokeObjectURL(URL), 5000);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue