mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-30 15:02:00 -08:00
webrtc: fix using JavaScript classes from outside the server (#3923)
Some checks are pending
code_lint / golangci_lint (push) Waiting to run
code_lint / mod_tidy (push) Waiting to run
code_lint / api_docs (push) Waiting to run
code_test / test_64 (push) Waiting to run
code_test / test_32 (push) Waiting to run
code_test / test_highlevel (push) Waiting to run
Some checks are pending
code_lint / golangci_lint (push) Waiting to run
code_lint / mod_tidy (push) Waiting to run
code_lint / api_docs (push) Waiting to run
code_test / test_64 (push) Waiting to run
code_test / test_32 (push) Waiting to run
code_test / test_highlevel (push) Waiting to run
This commit is contained in:
parent
20ad88f013
commit
5ff4f90ff9
2 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue