Skip to content

Commit

Permalink
Fix a few spelling errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
binki authored and jimmywarting committed Jan 7, 2019
1 parent 0e905a3 commit 4a73fd7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/FileSaver.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var _global = typeof window === 'object' && window.window === window
function bom (blob, opts) {
if (typeof opts === 'undefined') opts = { autoBom: false }
else if (typeof opts !== 'object') {
console.warn('Depricated: Expected third argument to be a object')
console.warn('Deprecated: Expected third argument to be a object')
opts = { autoBom: !opts }
}

Expand Down Expand Up @@ -123,7 +123,7 @@ var saveAs = _global.saveAs || (
// Fallback to using FileReader and a popup
: function saveAs (blob, name, opts, popup) {
// Open a popup immediately do go around popup blocker
// Mostly only avalible on user interaction and the fileReader is async so...
// Mostly only available on user interaction and the fileReader is async so...
popup = popup || open('', '_blank')
if (popup) {
popup.document.title =
Expand All @@ -137,7 +137,7 @@ var saveAs = _global.saveAs || (
var isChromeIOS = /CriOS\/[\d]+/.test(navigator.userAgent)

if ((isChromeIOS || (force && isSafari)) && typeof FileReader === 'object') {
// Safari doesn't allow downloading of blob urls
// Safari doesn't allow downloading of blob URLs
var reader = new FileReader()
reader.onloadend = function () {
var url = reader.result
Expand Down

0 comments on commit 4a73fd7

Please sign in to comment.