Merge pull request #830 from stackernews/fix-settings-relay-required

Fix settings save requires relay set
This commit is contained in:
ekzyis 2024-02-14 18:33:48 +01:00 committed by GitHub
commit 2587483bbe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -72,6 +72,7 @@ addMethod(string, 'ws', function (schemas, msg = 'invalid websocket') {
name: 'ws',
message: msg,
test: value => {
if (!value) return true
try {
// eslint-disable-next-line no-new
new URL(value)