From aa41ad779f69ff07ad8475bb5d610e4f8f46a9dc Mon Sep 17 00:00:00 2001 From: juancarmore Date: Tue, 17 Jun 2025 15:10:18 +0200 Subject: [PATCH] webcomponent: update error message to include recording-url attribute requirement --- frontend/webcomponent/src/components/OpenViduMeet.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/webcomponent/src/components/OpenViduMeet.ts b/frontend/webcomponent/src/components/OpenViduMeet.ts index 847223d..9e7f0ae 100644 --- a/frontend/webcomponent/src/components/OpenViduMeet.ts +++ b/frontend/webcomponent/src/components/OpenViduMeet.ts @@ -133,7 +133,7 @@ export class OpenViduMeet extends HTMLElement { private updateIframeSrc() { const baseUrl = this.getAttribute('room-url') || this.getAttribute('recording-url'); if (!baseUrl) { - console.error('The "room-url" attribute is required.'); + console.error('The "room-url" or "recording-url" attribute is required.'); return; } @@ -143,7 +143,7 @@ export class OpenViduMeet extends HTMLElement { // Update query params Array.from(this.attributes).forEach((attr) => { - if (attr.name !== 'room-url') { + if (attr.name !== 'room-url' && attr.name !== 'recording-url') { url.searchParams.set(attr.name, attr.value); } });