From f3e7a8b9b82d9f775082c6fcfb063aa8d5744107 Mon Sep 17 00:00:00 2001
From: Yang Qi <60582494+YangQi007@users.noreply.github.com>
Date: Tue, 5 Nov 2024 16:35:08 -0700
Subject: [PATCH] Added the dynamic backend code in index.html
---
index.html | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/index.html b/index.html
index 16c4e47..321b9fd 100644
--- a/index.html
+++ b/index.html
@@ -348,7 +348,15 @@
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) {