Open pdf in same tab for Safari (#888)

Safari blocks sharing objectURL data between tabs.
Just use the same tab.
This commit is contained in:
Matt Gibson 2021-03-11 18:05:24 -06:00 committed by GitHub
parent 3e988a741b
commit 35ecbcc11a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ export class WebPlatformUtilsService implements PlatformUtilsService {
const a = win.document.createElement('a');
if (doDownload) {
a.download = fileName;
} else {
} else if (!this.isSafari()) {
a.target = '_blank';
}
a.href = URL.createObjectURL(blob);