Cybrkyd's Git Repositories

jottings - commit: 97140c1

commit 97140c19a3e8bf795ec503532d24000c3c94f26dc442bb117d337269b2cd4926
author Cybrkyd <git@cybrkyd.com> 2026-06-25 20:14:06 +0100
committer Cybrkyd <git@cybrkyd.com> 2026-06-25 20:14:06 +0100

Commit Message

Saving export as .md

📊 Diffstat

resources/js/app.js 5
1 files changed, 4 insertions(+), 1 deletions(-)

Diff

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; }