webrtc: fix using JavaScript classes from outside the server (#3923)

This commit is contained in:
Alessandro Ros 2024-10-30 21:29:50 +01:00 committed by GitHub
parent 20ad88f013
commit 5ff4f90ff9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -304,7 +304,7 @@
throw new Error(`bad status code ${res.status}`);
}
this.sessionUrl = new URL(res.headers.get('location'), window.location.href).toString();
this.sessionUrl = new URL(res.headers.get('location'), this.conf.url).toString();
return res.text();
});

View File

@ -402,7 +402,7 @@
throw new Error(`bad status code ${res.status}`);
}
this.sessionUrl = new URL(res.headers.get('location'), window.location.href).toString();
this.sessionUrl = new URL(res.headers.get('location'), this.conf.url).toString();
return res.text();
});