Append the download link to the Letterflixd conversion log

The anchor was created and given its download attribute but never inserted into the DOM, so the converted CSV was unreachable: the log showed "Download import file ==> " with nothing to click. Append the anchor alongside its label, and drop the unstyled .download_button wrapper class in favour of .info, matching the div.info > span structure writeLog already produces. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

author
Marijn Besseling <njirambem@gmail.com> · 2026-08-16 16:54 UTC
commit
91b21499b242c1c79e48ea08cd5ebbee0703f716
parent
fba8b609d8
tree
browse at this commit

1 file changed +2 -2

Blog/Components/Pages/Letterflixd.razor.js +2 -2

@@ -93,7 +93,7 @@ function convertText(data) {
93 93
94 94 const filename = "netflix-letterboxd-import.csv"
95 95 let download_button = h("a", {href: window.URL.createObjectURL(letterboxd_import)}, filename)
96 - let download_text = h("span", {class: "info"}, "Download import file ==> ")
96 + let download_text = h("span", "Download import file ==> ")
97 97 download_button.download = filename;
98 - log.appendChild(h("div", {class:"download_button"}, [download_text]));
98 + log.appendChild(h("div", {class: "info"}, [download_text, download_button]));
99 99 }
No newline at end of file