Skip to content

Commit

Permalink
v1.3.6 - fix IE 10+ "saveAs: undefined" error
Browse files Browse the repository at this point in the history
  • Loading branch information
clarketm committed May 2, 2017
1 parent e241bd1 commit 70e4ea2
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions FileSaver.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! FileSaver.js v1.3.5
/*! FileSaver.js v1.3.6
*
* A saveAs() FileSaver implementation.
*
Expand Down Expand Up @@ -151,7 +151,7 @@
;
// IE 10+ (native saveAs)
if (typeof navigator !== "undefined" && navigator.msSaveOrOpenBlob) {
return function (blob, name, no_auto_bom) {
saveAs = function (blob, name, no_auto_bom) {
name = name || blob.name || "download";

if (!no_auto_bom) {
Expand Down
4 changes: 2 additions & 2 deletions 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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "file-saverjs",
"main": "FileSaver.js",
"version": "1.3.5",
"version": "1.3.6",
"homepage": "https://github.com/clarketm/FileSaver.js#readme",
"authors": [
"clarketm <[email protected]>",
Expand Down
Empty file modified demo/demo.js
100755 → 100644
Empty file.
Empty file modified demo/demo.min.js
100755 → 100644
Empty file.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "file-saverjs",
"version": "1.3.5",
"version": "1.3.6",
"description": "An HTML5 saveAs() FileSaver implementation",
"main": "FileSaver.js",
"scripts": {
"test": "exit 0",
"build": "node_modules/.bin/uglifyjs FileSaver.js --mangle --comments '/^!|@preserve|@license|@cc_on/i' > FileSaver.min.js"
"build": "uglifyjs FileSaver.js --mangle --comments '/^!|@preserve|@license|@cc_on/i' > FileSaver.min.js"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 70e4ea2

Please sign in to comment.