From b76795be8e4917979230fa2abf819eebabd3c76d Mon Sep 17 00:00:00 2001 From: Cashew Date: Tue, 2 Jan 2024 17:10:13 +0700 Subject: [PATCH] remove comments --- ext/js/background/backend.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ext/js/background/backend.js b/ext/js/background/backend.js index 452e827fbd..6de7092659 100644 --- a/ext/js/background/backend.js +++ b/ext/js/background/backend.js @@ -2259,13 +2259,9 @@ export class Backend { if (typeof error3 !== 'string') { continue; } switch (/** @type {import('backend').NetError} */ (error3)) { case 'net::ERR_FAILED': - // This is potentially an error due to the extension not having enough URL privileges. - // The message logged to the console looks like this: - // Access to fetch at '' from origin 'chrome-extension://' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled. return this._createAudioDownloadError('Audio download failed due to possible extension permissions error', 'audio-download-failed-permissions-error', errors); - case 'net::ERR_CERT_DATE_INVALID': // Chrome - case 'Peer’s Certificate has expired.': // Firefox - // This error occurs when a server certificate expires. + case 'net::ERR_CERT_DATE_INVALID': + case 'Peer’s Certificate has expired.': return this._createAudioDownloadError('Audio download failed due to an expired server certificate', 'audio-download-failed-expired-server-certificate', errors); } }