Fix settings save requires relay set

This commit is contained in:
ekzyis 2024-02-14 18:27:35 +01:00
parent 2b851edb02
commit 5eeaf671f8
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', name: 'ws',
message: msg, message: msg,
test: value => { test: value => {
if (!value) return true
try { try {
// eslint-disable-next-line no-new // eslint-disable-next-line no-new
new URL(value) new URL(value)