fix(frontend/player): load devtools only if link is present in the response
This commit is contained in:
parent
920c2523d6
commit
125cf9c102
1 changed files with 10 additions and 8 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue