Fix: Update-Dialog mit showSaveFilePicker (v1.2.1)

Direktes Speichern in den richtigen Ordner statt Download-Ordner.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Christian Heubaum
2026-04-21 20:42:07 +02:00
parent f97ab2d69f
commit fbb2d471de
2 changed files with 5 additions and 5 deletions

View File

@@ -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',
});