Skip to content

Commit

Permalink
constructor test in safari 10 has nuked
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmywarting committed Oct 5, 2016
1 parent eb8d76f commit 5ed507e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion FileSaver.js
Expand Up @@ -31,7 +31,7 @@ var saveAs = saveAs || (function(view) {
var event = new MouseEvent("click");
node.dispatchEvent(event);
}
, is_safari = /constructor/i.test(view.HTMLElement)
, is_safari = /constructor/i.test(view.HTMLElement) || view.safari
, is_chrome_ios =/CriOS\/[\d]+/.test(navigator.userAgent)
, throw_outside = function(ex) {
(view.setImmediate || view.setTimeout)(function() {
Expand Down
2 changes: 1 addition & 1 deletion FileSaver.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bower.json
@@ -1,7 +1,7 @@
{
"name": "file-saver",
"main": "FileSaver.js",
"version": "1.3.2",
"version": "1.3.3",
"homepage": "https://github.com/eligrey/FileSaver.js",
"authors": [
"Eli Grey <me@eligrey.com>"
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "file-saver",
"version": "1.3.2",
"version": "1.3.3",
"description": "An HTML5 saveAs() FileSaver implementation",
"main": "FileSaver.js",
"scripts": {
Expand Down

0 comments on commit 5ed507e

Please sign in to comment.