Skip to content

Commit

Permalink
don’t crash in worker
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmywarting committed Sep 26, 2018
1 parent 4de5ebc commit 37d757b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/FileSaver.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
}

var saveAs = _global.saveAs || // probably in some web worker
typeof window !== 'undefined' && window !== _global ? function saveAs() {}
typeof window !== 'object' || window !== _global ? function saveAs() {}
/* noop */
// Use download attribute first if possible (#193 Lumia mobile)
: 'download' in HTMLAnchorElement.prototype ? function saveAs(blob, name, autoBom) {
Expand Down
2 changes: 1 addition & 1 deletion dist/FileSaver.min.js

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

Loading

0 comments on commit 37d757b

Please sign in to comment.