npm run format
This commit is contained in:
parent
9c2fe39764
commit
3b8dbfd81c
2 changed files with 4 additions and 6 deletions
|
@ -153,9 +153,7 @@ export default class FileReceiver extends Nanobus {
|
|||
const downloadPath = `/api/download/${this.fileInfo.id}`;
|
||||
let downloadUrl = getApiUrl(downloadPath);
|
||||
if (downloadUrl === downloadPath) {
|
||||
downloadUrl = `${location.protocol}//${location.host}/api/download/${
|
||||
this.fileInfo.id
|
||||
}`;
|
||||
downloadUrl = `${location.protocol}//${location.host}/api/download/${this.fileInfo.id}`;
|
||||
}
|
||||
const a = document.createElement('a');
|
||||
a.href = downloadUrl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue