From b97ad1c8e712466bebfd9d6d84ad034344cd41a6 Mon Sep 17 00:00:00 2001 From: Alexander Onnikov Date: Mon, 15 Sep 2025 11:53:27 +0700 Subject: [PATCH] fix: do not show error when love recording not available (#9852) Signed-off-by: Alexander Onnikov --- plugins/love-resources/src/utils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/love-resources/src/utils.ts b/plugins/love-resources/src/utils.ts index 9423067439..6244ff0110 100644 --- a/plugins/love-resources/src/utils.ts +++ b/plugins/love-resources/src/utils.ts @@ -717,10 +717,12 @@ async function checkRecordAvailable (): Promise { setTimeout(() => { void checkRecordAvailable() }, 500) - } else { + } else if (endpoint !== '') { const res = await fetch(concatLink(endpoint, '/checkRecordAvailable')) const result = await res.json() isRecordingAvailable.set(result) + } else { + console.info('office recording is not configured') } } catch (err: any) { Analytics.handleError(err)