This commit is contained in:
+1
-1
@@ -145,7 +145,7 @@
|
||||
<ul id="route-control-local-list" class="route-control-list" aria-live="polite"></ul>
|
||||
</section>
|
||||
<div class="route-control-actions">
|
||||
<button id="editor-button" class="editor-button" type="button" aria-label="Streckenverwaltung öffnen" title="Streckenverwaltung öffnen" aria-haspopup="dialog" aria-expanded="false" aria-controls="editor-dialog">Strecken verwalten</button>
|
||||
<button id="editor-button" class="editor-button" type="button" aria-label="Strecken verwalten" title="Strecken verwalten" aria-haspopup="dialog" aria-expanded="false" aria-controls="editor-dialog">Strecken verwalten</button>
|
||||
<button id="route-control-new" class="editor-primary-button" type="button">Neue lokale Strecke</button>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
@@ -506,7 +506,7 @@ globalThis.Wegwichtel = globalThis.Wegwichtel || {};
|
||||
|
||||
function releasePendingPreview(pending) {
|
||||
const url = pending?.previewUrl;
|
||||
if (!url || !url.startsWith('blob:') || typeof globalThis.URL?.revokeObjectURL !== 'function') return;
|
||||
if (!url?.startsWith('blob:') || typeof globalThis.URL?.revokeObjectURL !== 'function') return;
|
||||
globalThis.URL.revokeObjectURL(url);
|
||||
}
|
||||
|
||||
@@ -663,8 +663,7 @@ globalThis.Wegwichtel = globalThis.Wegwichtel || {};
|
||||
try {
|
||||
handles = await globalThis.showOpenFilePicker(pickerOptions(kind));
|
||||
} catch (error) {
|
||||
if (error?.name === 'AbortError') return true;
|
||||
return false;
|
||||
return error?.name === 'AbortError';
|
||||
}
|
||||
|
||||
if (kind === 'audio') {
|
||||
|
||||
Reference in New Issue
Block a user