mirror of
https://github.com/bitwarden/web
synced 2025-12-11 05:43:16 +00:00
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:
@@ -143,7 +143,7 @@ export class WebPlatformUtilsService implements PlatformUtilsService {
|
|||||||
const a = win.document.createElement('a');
|
const a = win.document.createElement('a');
|
||||||
if (doDownload) {
|
if (doDownload) {
|
||||||
a.download = fileName;
|
a.download = fileName;
|
||||||
} else {
|
} else if (!this.isSafari()) {
|
||||||
a.target = '_blank';
|
a.target = '_blank';
|
||||||
}
|
}
|
||||||
a.href = URL.createObjectURL(blob);
|
a.href = URL.createObjectURL(blob);
|
||||||
|
|||||||
Reference in New Issue
Block a user