Skip to content
Permalink
Browse files
Update FileSaver.js
  • Loading branch information
jimmywarting committed Nov 19, 2020
1 parent 5bb701b commit b590aeeb3958a1baebfaa86000938c64a026e721
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/FileSaver.js
@@ -69,7 +69,7 @@ function click (node) {
// Detect WebView inside a native macOS app by ruling out all browsers
// We just need to check for 'Safari' because all other browsers (besides Firefox) include that too
// https://www.whatismybrowser.com/guides/the-latest-user-agent/macos
var isMacOSWebView = /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent)
var isMacOSWebView = _global.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent)

var saveAs = _global.saveAs || (
// probably in some web worker

0 comments on commit b590aee

Please sign in to comment.