Skip to content

Commit

Permalink
Browser: Add getTrackConfigs() method. Returns list of JSON strings (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
turner authored Jul 23, 2024
1 parent a4cc0db commit 9f0b2d8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -1480,6 +1480,12 @@ class Browser {
.map(track => track.config.url))
}

getTrackConfigs() {
return new Set(this.tracks
.filter(track => track.config && StringUtils.isString(track.config.url))
.map(track => JSON.stringify(track.config)))
}


/**
* Set the track height globally for all tracks. (Note: Its not clear why this is useful).
Expand Down

0 comments on commit 9f0b2d8

Please sign in to comment.