fca649f40a04767fbd9c331ef4e4b37f25882bf0 angie Mon Aug 18 09:16:01 2025 -0700 Changing tdb setting name from loraxBackendUrl (misnomer) to loraxIframeUrlBase. diff --git src/hg/hgc/loraxClick.c src/hg/hgc/loraxClick.c index acdcd7b8b36..5e34ae5a196 100644 --- src/hg/hgc/loraxClick.c +++ src/hg/hgc/loraxClick.c @@ -19,30 +19,30 @@ int end = cartInt(cart, "t"); // Set iframe style and make iframe with src=[lorax docker with chrom, start and end in URL] char *iframeHeight = trackDbSetting(tdb, "loraxIframeHeight"); printf( "<style>\n" "iframe {\n" " width: %s;\n" " height: %s;\n" " border: none;\n" "}\n" "</style>\n", "100%", iframeHeight); // Get backend URL from trackDb setting, add chrom, start and end params -char *backendUrl = trackDbSetting(tdb, "loraxBackendUrl"); +char *iframeUrlBase = trackDbSetting(tdb, "loraxIframeUrlBase"); printf("<iframe id='loraxIframe' src='%s?chrom=%s&start=%d&end=%d'></iframe>\n", - backendUrl, chrom, start, end); + iframeUrlBase, chrom, start, end); // jsIncludeFile throws an error due to CSP when invoked via pop-up, but is necessary when // "Enable pop-up when clicking items" is disabled in Genome Browser. // When invoked via pop-up, hgTracks has already included lorax.js, so the error can be // ignored because the file has already been loaded. jsIncludeFile("lorax.js", NULL); // jsInline still works in pop-up mode even though jsIncludeFile doesn't. (ASH has no idea why.) jsInlineF("loraxView('%s', %d, %d);", chrom, start, end); printTrackHtml(tdb); }