Skip to content

Commit

Permalink
SideBarFileManager: fix tlog detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani committed Apr 22, 2024
1 parent 19a517e commit 2692d4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/SideBarFileManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ export default {
url = file
}
const oReq = new XMLHttpRequest()
this.state.logType = url.endsWith('.tlog') ? 'tlog' : 'bin'
console.log(url)
this.state.logType = url.indexOf('.tlog') > 0 ? 'tlog' : 'bin'
oReq.open('GET', url, true)
oReq.responseType = 'arraybuffer'
Expand Down

0 comments on commit 2692d4a

Please sign in to comment.