From b08a6d256c0c151873cc0d33f56e03c320677eea Mon Sep 17 00:00:00 2001 From: Jeff Dye Date: Wed, 10 Oct 2018 15:12:43 -0400 Subject: [PATCH] Minor misspellings in comments Just some quick fixes for comments in the file. --- src/FileSaver.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/FileSaver.js b/src/FileSaver.js index 4411155..a874613 100644 --- a/src/FileSaver.js +++ b/src/FileSaver.js @@ -9,7 +9,7 @@ */ -// The one and only way of getting global scope in all enviorment +// The one and only way of getting global scope in all environments // https://stackoverflow.com/q/3277182/1008999 var _global = (function () { // some use content security policy to disable eval @@ -60,7 +60,7 @@ function corsEnabled (url) { return xhr.status >= 200 && xhr.status <= 299 } -// `a.click()` don't work for all browsers (#465) +// `a.click()` doesn't work for all browsers (#465) function click(node) { try { node.dispatchEvent(new MouseEvent('click')) @@ -108,7 +108,7 @@ var saveAs = _global.saveAs || } } -// Use msSaveOrOpenBlob as a second approch +// Use msSaveOrOpenBlob as a second approach : 'msSaveOrOpenBlob' in navigator ? function saveAs (blob, name, opts) { name = name || blob.name || 'download'