diff --git a/resources/js/app.js b/resources/js/app.js
index d095ee1..387bf6f 100644
--- a/resources/js/app.js
+++ b/resources/js/app.js
@@ -781,7 +781,7 @@ async function exportDocument() {
return;
}
- const defaultName = `${currentDocName || 'note'}.txt`;
+ const defaultName = `${currentDocName || 'note'}.md`;
try {
const filename = await Neutralino.os.showSaveDialog('Export Jot', {
@@ -911,7 +911,10 @@ editor.addEventListener("keydown", function(e) {
}
});
+ // ===============
// EVENT LISTENERS
+ // ===============
+
document.getElementById("saveBtn").onclick = function() {
const text = getEditorText().trim();
if (!text) { alert("Enter some text first"); return; }