diff --git a/src/inject/interceptors.js b/src/inject/interceptors.js index 37513ad..7f93ef2 100644 --- a/src/inject/interceptors.js +++ b/src/inject/interceptors.js @@ -61,7 +61,7 @@ this._goon_url = url; return originalOpen.apply(this, arguments); }; - XMLHttpRequest.prototype.send = function (body) { + XMLHttpRequest.prototype.send = function (_body) { if (this._goon_url && typeof this._goon_url === 'string') { var resolved = resolveUrl(this._goon_url); if ( @@ -78,7 +78,7 @@ // 2. Intercept fetch() for manifest-like requests var originalFetch = window.fetch; - window.fetch = function (resource, init) { + window.fetch = function (resource, _init) { var url = typeof resource === 'string' ? resource : resource && resource.url; if (url && typeof url === 'string') { var resolved = resolveUrl(url); diff --git a/src/viewer/viewer.js b/src/viewer/viewer.js index daf5e35..84b4e26 100644 --- a/src/viewer/viewer.js +++ b/src/viewer/viewer.js @@ -198,7 +198,7 @@ async function init() { if (hlsEntries.length > 0) { try { await loadHlsJs(); - } catch (e) { + } catch { for (const { panel } of hlsEntries) { showError(panel, 'HLS player unavailable - check network.'); }