We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6be0697 commit edcfd03Copy full SHA for edcfd03
src/biorepo_components/BiorepoPage.jsx
@@ -24,11 +24,13 @@ export default function BiorepoPage() {
24
const candidatePath = `/${pathSegments.slice(0, i).join('/')}/neon-react`;
25
// Check if the resource exists (use HEAD request to test for existence)
26
const xhr = new XMLHttpRequest();
27
- xhr.open('HEAD', `${basePath}${candidatePath}`, false);
+ xhr.open('HEAD', `${basePath}${candidatePath}/biorepo_lib/getSymbiniConfig.php`, false);
28
xhr.send();
29
if (xhr.status === 200) {
30
clientRootPath = `/${pathSegments.slice(0, i).join('/')}`;
31
break;
32
+ } else if (xhr.status === 404) {
33
+ // pass
34
}
35
36
const fetchUrl = `${basePath}${clientRootPath}/neon-react/biorepo_lib/getSymbiniConfig.php`;
0 commit comments