Skip to content

Commit

Permalink
Merge pull request #89 from parv-sachdeva/master
Browse files Browse the repository at this point in the history
Update loadBedTrackFromFile function to ignore shiny query strings #88
  • Loading branch information
gladkia authored Aug 30, 2024
2 parents 188c455 + 550e39a commit 648a469
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: igvShiny
Title: igvShiny: a wrapper of Integrative Genomics Viewer (IGV - an interactive
tool for visualization and exploration integrated genomic data)
Version: 1.0.4
Version: 1.0.5
Date: 2024-08-25
Authors@R: c(
person("Paul","Shannon", role = c("aut"),
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## igvShiny 1.0.5 - 2024-08-29
* fix issue with loading bed files when app is run with query strings

## igvShiny 1.0.4 - 2024-08-25
* switch from Rcurl::url.exists to httr::http_error (Windows compatibility)

Expand Down
2 changes: 1 addition & 1 deletion inst/htmlwidgets/igvShiny.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ Shiny.addCustomMessageHandler("loadBedTrackFromFile",
var igvBrowser = document.getElementById(elementID).igvBrowser;
var trackName = message.trackName;
var bedFile = message.bedFilepath;
var dataURL = window.location.href + bedFile;
var dataURL = window.location.href.split('?')[0] + bedFile; // If a query string is present the url before that is used
igvshiny_log("dataURL: " + dataURL);

var color = message.color;
Expand Down

0 comments on commit 648a469

Please sign in to comment.