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',
|
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)
|
||||||
|
|
Loading…
Reference in New Issue