webrtc: fix using JavaScript classes from outside the server (#3923)
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user