fixed autocomplete

This commit is contained in:
Timo Bejan 2022-01-24 19:44:04 +02:00
parent 0ddc95dcc5
commit f2153848f7

View File

@ -46,7 +46,7 @@ export class FileDownloadService extends EntitiesService<DownloadStatus, IDownlo
async performDownload(status: DownloadStatus) {
const anchor = document.createElement('a');
anchor.href = `${this._configService.values.API_URL}/async/download?storageId=${encodeURIComponent(status.storageId)}`;
if (this._configService.values.USE_SESSION_FOR_DOWNLOAD) {
if (!this._configService.values.USE_SESSION_FOR_DOWNLOAD) {
const token = await this._keycloakService.getToken();
anchor.href = anchor.href + `&access_token=${encodeURIComponent(token)}`;
}