Skip to content

Commit ae849c3

Browse files
authored
fix: remove outdated Safari check for Blob downloads (#4541)
1 parent 1a95b9e commit ae849c3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/core/components/response-body.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ export default class ResponseBody extends React.PureComponent {
6464
(headers["content-description"] && (/File Transfer/i).test(headers["content-description"]))) {
6565
// Download
6666

67-
const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent)
68-
69-
if (!isSafari && "Blob" in window) {
67+
if ("Blob" in window) {
7068
let type = contentType || "text/html"
7169
let blob = (content instanceof Blob) ? content : new Blob([content], {type: type})
7270
let href = window.URL.createObjectURL(blob)

0 commit comments

Comments
 (0)