Skip to content

Commit

Permalink
A few more style nits
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr0grog committed Jul 28, 2023
1 parent fd51167 commit 7dc8f8b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,12 @@ if (window.URL && window.File) {
downloadButton.style.display = '';
downloadButton.addEventListener('click', () => {
// generate file
const file = new window.File(
[outputElement.value],
'Converted Text.md', {
type: "text/markdown",
const file = new window.File([outputElement.value], 'Converted Text.md', {
type: 'text/markdown',
});

// make a link and click it
const link = document.createElement("a");
const link = document.createElement('a');
const url = window.URL.createObjectURL(file);
link.href = url;
link.download = file.name;
Expand Down

0 comments on commit 7dc8f8b

Please sign in to comment.