From fbb2d471ded3c468cbaf35186f03e314c0fe8246 Mon Sep 17 00:00:00 2001 From: Christian Heubaum Date: Tue, 21 Apr 2026 20:42:07 +0200 Subject: [PATCH] Fix: Update-Dialog mit showSaveFilePicker (v1.2.1) Direktes Speichern in den richtigen Ordner statt Download-Ordner. Co-Authored-By: Claude Sonnet 4.6 --- index.html | 8 ++++---- version.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 1842006..722608b 100644 --- a/index.html +++ b/index.html @@ -1713,7 +1713,7 @@ // ============================================================ // CONSTANTS & CHAPTER CONFIG // ============================================================ -const APP_VERSION = '1.2.0'; +const APP_VERSION = '1.2.1'; const GITEA_RAW = 'http://72.60.134.73:3000/api/v1/repos/cheubaum/BNI-Vorstellungsrunde/raw'; const GITEA_API = 'http://72.60.134.73:3000/api/v1/repos/cheubaum/BNI-Vorstellungsrunde'; function giteaUrl(path) { return `${GITEA_RAW}/${path}?ref=main`; } @@ -4352,11 +4352,11 @@ async function downloadUpdate(version) { html = await res.text(); } catch(e) { alert('Download fehlgeschlagen: ' + e.message); return; } - if ('showOpenFilePicker' in window) { + if ('showSaveFilePicker' in window) { try { - const [fileHandle] = await window.showOpenFilePicker({ + const fileHandle = await window.showSaveFilePicker({ + suggestedName: 'index.html', types: [{ description: 'HTML-Datei', accept: { 'text/html': ['.html'] } }], - multiple: false, id: 'bni-update', startIn: 'documents', }); diff --git a/version.json b/version.json index 212e600..caa96a9 100644 --- a/version.json +++ b/version.json @@ -1,4 +1,4 @@ { - "version": "1.2.0", + "version": "1.2.1", "notes": "Timer-Schalter im Admin-MenĂ¼" }