We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cbfbc2 commit 5559b7dCopy full SHA for 5559b7d
1 file changed
report-viewer/report-viewer/src/stores/fileLoading.ts
@@ -12,11 +12,11 @@ export async function loadReport(): Promise<void> {
12
reportFile = await getLocalFile('example.jplag')
13
reportName = 'progpedia.jplag'
14
} else if (getQueryFileUrl() !== null) {
15
- const queryURL = getQueryFileUrl()!
16
- const response = await fetch(new URL(queryURL))
+ const queryURL = new URL(getQueryFileUrl()!)
+ const response = await fetch(queryURL)
17
reportFile = await response.blob()
18
19
- const urlParts = queryURL.split('/')
+ const urlParts = queryURL.pathname.split('/')
20
const lastUrlPart = urlParts[urlParts.length - 1]
21
if (lastUrlPart?.endsWith('.jplag')) {
22
reportName = lastUrlPart
0 commit comments