mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-29 00:05:01 +08:00
Respect LIVEBOOK_BASE_URL_PATH when checking /public assets availability (#2700)
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
This commit is contained in:
parent
066a364123
commit
834f5a194c
1 changed files with 3 additions and 1 deletions
|
@ -507,9 +507,11 @@ const JSView = {
|
|||
* once and the response is cached.
|
||||
*/
|
||||
function cachedPublicEndpointCheck() {
|
||||
const healthUrl = window.LIVEBOOK_BASE_URL_PATH + "/public/health";
|
||||
|
||||
cachedPublicEndpointCheck.promise =
|
||||
cachedPublicEndpointCheck.promise ||
|
||||
fetch("/public/health")
|
||||
fetch(healthUrl)
|
||||
.then((response) => response.status === 200)
|
||||
.catch((error) => false);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue