Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loadTracks example not working #1841

Closed
mukamel-lab opened this issue Jul 9, 2024 · 2 comments
Closed

loadTracks example not working #1841

mukamel-lab opened this issue Jul 9, 2024 · 2 comments
Assignees
Milestone

Comments

@mukamel-lab
Copy link

mukamel-lab commented Jul 9, 2024

Thanks for the great software!

When I tried running the loadTracks example and select a track from the dropdown, I get an error:

ReferenceError: igv is not defined at HTMLAnchorElement.onclick (loadTracks.html:70:37)

I believe this can be solved by loading igv directly (not as a module):

  <script src="../dist/igv.min.js" type="text/javascript"> </script>
  <script>
  <!-- <script type="module"> -->

    <!-- import igv from "../dist/igv.esm.min.js" -->

    const options =
    {
      locus: "chr1:155,160,475-155,184,282",
      genome: "hg19"
    }
@jrobinso jrobinso self-assigned this Jul 9, 2024
@jrobinso jrobinso added this to the 3.0 milestone Jul 9, 2024
@jrobinso
Copy link
Contributor

jrobinso commented Jul 9, 2024

OK, thanks for the report, I see it as well.

@jrobinso
Copy link
Contributor

jrobinso commented Jul 9, 2024

Your fix will work, but I updated the example to a bit more modern javascript. But either method is o.k.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants