We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bb701b commit b590aeeCopy full SHA for b590aee
src/FileSaver.js
@@ -69,7 +69,7 @@ function click (node) {
69
// Detect WebView inside a native macOS app by ruling out all browsers
70
// We just need to check for 'Safari' because all other browsers (besides Firefox) include that too
71
// https://www.whatismybrowser.com/guides/the-latest-user-agent/macos
72
-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)
73
74
var saveAs = _global.saveAs || (
75
// probably in some web worker
0 commit comments