fix: silence no-unused-vars lint warnings in interceptors.js and viewer.js
CI / test (pull_request) Failing after 16s

This commit is contained in:
Hermes QA committed 2026-08-12 01:39:20 +00:00
1 parent 15816a8579
commit 135913b86c
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -61,7 +61,7 @@
this._goon_url = url; this._goon_url = url;
return originalOpen.apply(this, arguments); return originalOpen.apply(this, arguments);
}; };
XMLHttpRequest.prototype.send = function (body) { XMLHttpRequest.prototype.send = function (_body) {
if (this._goon_url && typeof this._goon_url === 'string') { if (this._goon_url && typeof this._goon_url === 'string') {
var resolved = resolveUrl(this._goon_url); var resolved = resolveUrl(this._goon_url);
if ( if (
@@ -78,7 +78,7 @@
// 2. Intercept fetch() for manifest-like requests // 2. Intercept fetch() for manifest-like requests
var originalFetch = window.fetch; var originalFetch = window.fetch;
window.fetch = function (resource, init) { window.fetch = function (resource, _init) {
var url = typeof resource === 'string' ? resource : resource && resource.url; var url = typeof resource === 'string' ? resource : resource && resource.url;
if (url && typeof url === 'string') { if (url && typeof url === 'string') {
var resolved = resolveUrl(url); var resolved = resolveUrl(url);
+1 -1
View File
@@ -198,7 +198,7 @@ async function init() {
if (hlsEntries.length > 0) { if (hlsEntries.length > 0) {
try { try {
await loadHlsJs(); await loadHlsJs();
} catch (e) { } catch {
for (const { panel } of hlsEntries) { for (const { panel } of hlsEntries) {
showError(panel, 'HLS player unavailable - check network.'); showError(panel, 'HLS player unavailable - check network.');
} }