aboutsummaryrefslogtreecommitdiff
path: root/src/JSZipUtils.js
diff options
context:
space:
mode:
authoreleanor-park <eleanor_park@brown.edu>2024-08-27 16:44:12 -0400
committereleanor-park <eleanor_park@brown.edu>2024-08-27 16:44:12 -0400
commit39d2bba7bf4b0cc3759931691640083a48cce662 (patch)
tree8bf110760aa926237b6294aec545f48cfc92747d /src/JSZipUtils.js
parent6f73686ec4dc3e01ae3eacc0150aa59eafea0325 (diff)
parentb8a04a0fedf8ef3612395764a0ecd01f6824ebd1 (diff)
Merge branch 'master' into eleanor-gptdraw
Diffstat (limited to 'src/JSZipUtils.js')
-rw-r--r--src/JSZipUtils.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/JSZipUtils.js b/src/JSZipUtils.js
index 5ce1bd471..755de7226 100644
--- a/src/JSZipUtils.js
+++ b/src/JSZipUtils.js
@@ -12,13 +12,17 @@ JSZipUtils._getBinaryFromXHR = function (xhr) {
function createStandardXHR() {
try {
return new window.XMLHttpRequest();
- } catch (e) {}
+ } catch (e) {
+ /* empty */
+ }
}
function createActiveXHR() {
try {
return new window.ActiveXObject('Microsoft.XMLHTTP');
- } catch (e) {}
+ } catch (e) {
+ /* empty */
+ }
}
// Create the request object
@@ -101,7 +105,7 @@ JSZipUtils.getBinaryContent = function (path, options) {
xhr.overrideMimeType('text/plain; charset=x-user-defined');
}
- xhr.onreadystatechange = function (event) {
+ xhr.onreadystatechange = function (/* event */) {
// use `xhr` and not `this`... thanks IE
if (xhr.readyState === 4) {
if (xhr.status === 200 || xhr.status === 0) {