Skip to content

Commit b590aee

Browse files
authored
Update FileSaver.js
1 parent 5bb701b commit b590aee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FileSaver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function click (node) {
6969
// Detect WebView inside a native macOS app by ruling out all browsers
7070
// We just need to check for 'Safari' because all other browsers (besides Firefox) include that too
7171
// 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)
72+
var isMacOSWebView = _global.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent)
7373

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

0 commit comments

Comments
 (0)