mirror of https://github.com/VERT-sh/VERT.git
fix: default to auto on empty PUB_VERTD_URL
This commit is contained in:
parent
17a1e16545
commit
9bae3620ce
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue