Skip to content

Commit

Permalink
Handle loading session with local file references
Browse files Browse the repository at this point in the history
  • Loading branch information
turner committed Jan 5, 2024
1 parent a198395 commit f3a0333
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,15 @@ async function initializationHelper(browser, container, options) {
const sessionLoader = async config => {

try {
await browser.loadSession(config)
config.parentApp = 'igvwebapp'
const trackConfigurations = await browser.loadSession(config)

// const str = trackConfigurations.map(config => JSON.stringify(config, null, 2)).join('\n')
// console.log(str)

const localTrackFileNames = trackConfigurations.filter((config) => undefined !== config.file).map(({filename}) => filename)
console.log(`Session contains local files that cannot be loaded automatically:\n${ localTrackFileNames.join('\n')}`)

} catch (e) {
console.error(e)
AlertSingleton.present(e)
Expand Down

0 comments on commit f3a0333

Please sign in to comment.