Skip to content

Commit

Permalink
Merge pull request #10 from iobio/yang_bam2_add_dynamic_backend_code
Browse files Browse the repository at this point in the history
Added the dynamic backend code in index.html
  • Loading branch information
anderspitman authored Nov 5, 2024
2 parents 4f9feeb + f3e7a8b commit 7845da9
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 7845da9

Please sign in to comment.