Skip to content

Commit

Permalink
sideBarFileManager: another tweak for url loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani committed Apr 22, 2024
1 parent 24d6641 commit e67fa69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/SideBarFileManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default {
url = file
}
const oReq = new XMLHttpRequest()
console.log(url)
console.log(`loading file from ${url}`)
this.state.logType = url.indexOf('.tlog') > 0 ? 'tlog' : 'bin'
oReq.open('GET', url, true)
oReq.responseType = 'arraybuffer'
Expand All @@ -86,7 +86,7 @@ export default {
this.transferMessage = 'Download Done'
this.sampleLoaded = true
worker.postMessage({ action: 'parse', file: arrayBuffer, isTlog: (url.endsWith('.tlog')) })
worker.postMessage({ action: 'parse', file: arrayBuffer, isTlog: (url.indexOf('.tlog') > 0) })
}
oReq.addEventListener('progress', (e) => {
if (e.lengthComputable) {
Expand Down

0 comments on commit e67fa69

Please sign in to comment.