Skip to content

Commit

Permalink
Use blob fallback on safari on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmywarting authored Apr 7, 2020
1 parent a6ec1df commit dc0c9da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion StreamSaver.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
const test = fn => { try { fn() } catch (e) {} }
const ponyfill = window.WebStreamsPolyfill || {}
const isSecureContext = window.isSecureContext
let useBlobFallback = /constructor/i.test(window.HTMLElement) || !!window.safari
// TODO: Must come up with a real detection test (#69)
let useBlobFallback = /constructor/i.test(window.HTMLElement) || !!window.safari || !!window.WebKitPoint
const downloadStrategy = isSecureContext || 'MozAppearance' in document.documentElement.style
? 'iframe'
: 'navigate'
Expand Down

0 comments on commit dc0c9da

Please sign in to comment.