fix(frontend/player): load devtools only if link is present in the response

This commit is contained in:
Alex Kaminskii 2022-11-03 18:18:08 +01:00
parent 920c2523d6
commit 125cf9c102

View file

@ -246,14 +246,16 @@ export default class MessageDistributor extends StatedScreen {
.finally(this.onFileReadFinally)
// load devtools
update({ devtoolsLoading: true })
loadFiles(this.session.devtoolsURL, createNewParser())
.catch(() =>
requestEFSDevtools(this.session.sessionId)
.then(createNewParser(false))
)
//.catch() // not able to download the devtools file
.finally(() => update({ devtoolsLoading: false }))
if (this.session.devtoolsURL.length) {
update({ devtoolsLoading: true })
loadFiles(this.session.devtoolsURL, createNewParser())
.catch(() =>
requestEFSDevtools(this.session.sessionId)
.then(createNewParser(false))
)
//.catch() // not able to download the devtools file
.finally(() => update({ devtoolsLoading: false }))
}
}
reloadWithUnprocessedFile() {