Skip to content

Commit 5aae425

Browse files
committed
#25: Fixed RegExp to detect Safari under Windows.
1 parent 1e0e1e8 commit 5aae425

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

FileAPI.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/FileAPI.core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
jQuery = window.jQuery,
2020

2121
html5 = !!(File && (FileReader && (window.Uint8Array || FormData || XMLHttpRequest.prototype.sendAsBinary)))
22-
&& !(/safari\//.test(userAgent) && /windows/i.test(userAgent)), // BugFix: https://github.com/mailru/FileAPI/issues/25
22+
&& !(/safari\//i.test(userAgent) && /windows/i.test(userAgent)), // BugFix: https://github.com/mailru/FileAPI/issues/25
2323

2424
cors = html5 && ('withCredentials' in (new XMLHttpRequest)),
2525

0 commit comments

Comments
 (0)