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Ă¼" }