diff options
author | bobzel <zzzman@gmail.com> | 2023-07-28 11:08:12 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-07-28 11:08:12 -0400 |
commit | 022540e2833025409fd8017c5c9ecb3bfc93867b (patch) | |
tree | 930a15f1583481c744a3797276373c8e1c89b7b3 /src/fields/URLField.ts | |
parent | c3ad219894475b71fa66b3b5749ba3a1da503ede (diff) |
minor formatting. url field doesn't need to test for https -- covered by testing for http
Diffstat (limited to 'src/fields/URLField.ts')
-rw-r--r-- | src/fields/URLField.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fields/URLField.ts b/src/fields/URLField.ts index 8db4d6003..8ac20b1e5 100644 --- a/src/fields/URLField.ts +++ b/src/fields/URLField.ts @@ -25,7 +25,7 @@ export abstract class URLField extends ObjectField { constructor(url: URL | string) { super(); if (typeof url === 'string') { - url = (url.startsWith('http') || url.startsWith('https')) ? new URL(url) : new URL(url, window.location.origin); + url = url.startsWith('http') ? new URL(url) : new URL(url, window.location.origin); } this.url = url; } |