diff --git a/public/index.html b/public/index.html
index 2932be0..c304cdb 100644
--- a/public/index.html
+++ b/public/index.html
@@ -145,7 +145,7 @@
-
+
diff --git a/public/js/editor-ui.js b/public/js/editor-ui.js
index b2aa58a..f75c4dc 100644
--- a/public/js/editor-ui.js
+++ b/public/js/editor-ui.js
@@ -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') {
diff --git a/test/editor-ui.test.js b/test/editor-ui.test.js
index 5f0c3e3..b1ed6d5 100644
--- a/test/editor-ui.test.js
+++ b/test/editor-ui.test.js
@@ -19,7 +19,7 @@ test('editor markup and source describe local draft creation instead of immediat
const css = await read('public/css/editor.css');
const ui = await read('public/js/editor-ui.js');
- assert.match(html, /id="editor-button"[^>]+aria-label="Streckenverwaltung öffnen"/);
+ assert.match(html, /id="editor-button"[^>]+aria-label="Strecken verwalten"/);
assert.match(html, /id="route-control-button"[\s\S]*?
]+src="images\/icons\/route-management\.svg"[^>]+alt=""[^>]*>/);
assert.doesNotMatch(html, /class="editor-button-icon"/);
assert.match(html, /