diff options
author | bobzel <zzzman@gmail.com> | 2024-08-08 12:27:40 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-08-08 12:27:40 -0400 |
commit | 4574b7f03ccc85c4bebdbfd9475788456086704f (patch) | |
tree | d23d30343541b9af029ef418492d629d3cc710d7 /src/JSZipUtils.js | |
parent | e1db06d59d580aa640212a0d3a6aeecb9122bdf0 (diff) |
many changes to add typing in place of 'any's etc
Diffstat (limited to 'src/JSZipUtils.js')
-rw-r--r-- | src/JSZipUtils.js | 10 |
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) { |