webcomponent: update error message to include recording-url attribute requirement

This commit is contained in:
juancarmore 2025-06-17 15:10:18 +02:00
parent be2faa6048
commit aa41ad779f

View File

@ -133,7 +133,7 @@ export class OpenViduMeet extends HTMLElement {
private updateIframeSrc() { private updateIframeSrc() {
const baseUrl = this.getAttribute('room-url') || this.getAttribute('recording-url'); const baseUrl = this.getAttribute('room-url') || this.getAttribute('recording-url');
if (!baseUrl) { if (!baseUrl) {
console.error('The "room-url" attribute is required.'); console.error('The "room-url" or "recording-url" attribute is required.');
return; return;
} }
@ -143,7 +143,7 @@ export class OpenViduMeet extends HTMLElement {
// Update query params // Update query params
Array.from(this.attributes).forEach((attr) => { 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); url.searchParams.set(attr.name, attr.value);
} }
}); });