diff --git a/src/lib/store/index.svelte.ts b/src/lib/store/index.svelte.ts index bd2b376..3b40364 100644 --- a/src/lib/store/index.svelte.ts +++ b/src/lib/store/index.svelte.ts @@ -239,7 +239,7 @@ class Files { const url = URL.createObjectURL(blob); const settings = JSON.parse(localStorage.getItem("settings") ?? "{}"); - const filenameFormat = settings.filenameFormat ?? "VERT_%name%"; + const filenameFormat = settings.filenameFormat || "VERT_%name%"; const format = (name: string) => { const date = new Date().toISOString(); diff --git a/src/lib/types/file.svelte.ts b/src/lib/types/file.svelte.ts index 8fc0d61..76b1ca5 100644 --- a/src/lib/types/file.svelte.ts +++ b/src/lib/types/file.svelte.ts @@ -91,7 +91,7 @@ export class VertFile { if (!to.startsWith(".")) to = `.${to}`; const settings = JSON.parse(localStorage.getItem("settings") ?? "{}"); - const filenameFormat = settings.filenameFormat ?? "VERT_%name%"; + const filenameFormat = settings.filenameFormat || "VERT_%name%"; const format = (name: string) => { const date = new Date().toISOString();