diff index.html @ 5:97be83fc3677 draft

planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/vitessce commit 90f081e58b5ee41bba3a7e6f01d97b5bd9392759
author goeckslab
date Wed, 28 May 2025 21:14:59 +0000
parents 068da7f7cd83
children
line wrap: on
line diff
--- a/index.html	Thu Feb 20 19:47:16 2025 +0000
+++ b/index.html	Wed May 28 21:14:59 2025 +0000
@@ -27,31 +27,13 @@
       import { Vitessce } from 'vitessce';
       import { config } from './config.js';
 
-      console.log('here be url: '+window.location.href);
-      var current_url = window.location.href.replace(new RegExp('\/[^\/]*$'), '');
-      console.log(current_url);
-      function rewriteURL(input) {
-        for (let k in input) {
-        if (typeof input[k] === 'string' || input[k] instanceof String) {
-            input[k] = input[k].replace('http://localhost', current_url)
-        }
-        else {
-            input[k] = rewriteURL(input[k])
-        }
-        }
-        return input;
-      };
-      var fixed_conf = {...config};
-      fixed_conf = rewriteURL(fixed_conf);
-      console.log('conf fixed:');
-      console.log(fixed_conf);
       function MyApp() {
         return React.createElement(
           Vitessce,
           {
             height: 1000,
             theme: 'dark',
-            config: fixed_conf,
+            config: config,
           }
         );
       }