Skip to content

armgit / VERT

Public Imported from GitHub
0

The next-generation file converter. Open source, fully local* and free forever.

fix: default to auto on empty PUB_VERTD_URL

Maya9bae3620ce0b
diff --git a/src/lib/sections/settings/vertdSettings.svelte.ts b/src/lib/sections/settings/vertdSettings.svelte.ts
index ccdbf4d..d9cb5e4 100644
--- a/src/lib/sections/settings/vertdSettings.svelte.ts
+++ b/src/lib/sections/settings/vertdSettings.svelte.ts
@@ -55,7 +55,8 @@ export class VertdInstance {
// if custom vertd url and no saved setting, default to the custom url
if (!ls) {
- const isCustomUrl = PUB_VERTD_URL !== "https://vertd.vert.sh";
+ const isCustomUrl =
+ PUB_VERTD_URL && PUB_VERTD_URL !== "https://vertd.vert.sh";
if (isCustomUrl) {
this.inner = { type: "custom" };
return;