mirror of
https://github.com/morluto/rea.git
synced 2026-10-31 11:56:12 +00:00
12 lines
396 B
JavaScript
12 lines
396 B
JavaScript
async function exportNotes() {
|
|
const destination = await window.notes.exportCsv();
|
|
document.querySelector("#status").textContent = `Saved to ${destination}`;
|
|
}
|
|
|
|
document.querySelector("#export").addEventListener("click", () => {
|
|
exportNotes().catch((cause) => {
|
|
document.querySelector("#status").textContent = "Export failed";
|
|
console.error("Notes export failed", cause);
|
|
});
|
|
});
|