From f3a033321f7631a079d21bf04931c29f182fb282 Mon Sep 17 00:00:00 2001 From: turner Date: Fri, 5 Jan 2024 10:10:48 -0500 Subject: [PATCH] Handle loading session with local file references --- js/app.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/js/app.js b/js/app.js index 0f8e4b1..cae728d 100644 --- a/js/app.js +++ b/js/app.js @@ -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)