Skip to content

Commit

Permalink
Added the dynamic backend code in index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
YangQi007 committed Nov 5, 2024
1 parent 4f9feeb commit f3e7a8b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,15 @@ <h1 id="home-button" data-link="/">bam2.iobio</h1>
broker.bedUrl = bedUrl;
}

const backendUrl = determineBackendUrl();
const readDepthComponent = document.querySelector('iobio-coverage-depth');
readDepthComponent.backendUrl = backendUrl;

function determineBackendUrl() {
// Determine backend URL dynamically
return 'https://backend.iobio.io'; // Default URL
}

function mosaicRequesterForProject(server, projectId, token) {

async function request(path) {
Expand Down

0 comments on commit f3e7a8b

Please sign in to comment.