Fix settings save requires relay set
This commit is contained in:
parent
2b851edb02
commit
5eeaf671f8
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue