From 5eeaf671f8044392b6f7a6bcda23667d0b490ed0 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Wed, 14 Feb 2024 18:27:35 +0100 Subject: [PATCH] Fix settings save requires relay set --- lib/validate.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/validate.js b/lib/validate.js index 5131a3ab..a95d708f 100644 --- a/lib/validate.js +++ b/lib/validate.js @@ -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)