Skip to content

Commit

Permalink
eliminate "randomSeed" argument when fetching genome list
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinso committed Aug 29, 2023
1 parent a4e900d commit 3f38481
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/genome/genome.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ const GenomeUtils = {
// Get default genomes
if (config.loadDefaultGenomes !== false) {
try {
const url = DEFAULT_GENOMES_URL + `?randomSeed=${Math.random().toString(36)}&version=${version()}` // prevent caching
const url = DEFAULT_GENOMES_URL
const jsonArray = await igvxhr.loadJson(url, {timeout: 5000})
processJson(jsonArray)
} catch (e) {
console.error(e)
try {
const url = BACKUP_GENOMES_URL + `?randomSeed=${Math.random().toString(36)}&version=${version()}` // prevent caching
const url = BACKUP_GENOMES_URL
const jsonArray = await igvxhr.loadJson(url, {})
processJson(jsonArray)
} catch (e) {
Expand Down

0 comments on commit 3f38481

Please sign in to comment.