Skip to content

Commit

Permalink
idk why this wasnt an else
Browse files Browse the repository at this point in the history
  • Loading branch information
Jazza-231 committed Dec 6, 2023
1 parent c74efda commit fd62ae4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions addons/blocks2image/userscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,7 @@ export default async function ({ addon, console, msg }) {
.copyImage(dataURL)
.then(() => console.log("Image successfully copied"))
.catch((e) => console.error(`Image could not be copied: ${e}`));
}

if (!copy) {
} else {
link.download = `block_${timestamp}.png`;
link.href = dataURL;
link.click();
Expand Down

0 comments on commit fd62ae4

Please sign in to comment.