From e67fa69dc0d400fb8aa1987c39ca19b75a5572c2 Mon Sep 17 00:00:00 2001 From: Willian Galvani Date: Mon, 22 Apr 2024 18:07:56 -0300 Subject: [PATCH] sideBarFileManager: another tweak for url loading --- src/components/SideBarFileManager.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/SideBarFileManager.vue b/src/components/SideBarFileManager.vue index 3d2fdc5..742c236 100644 --- a/src/components/SideBarFileManager.vue +++ b/src/components/SideBarFileManager.vue @@ -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' @@ -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) {