Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Casheeew committed Jan 2, 2024
1 parent 4a4eac7 commit b76795b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions ext/js/background/backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 '<URL>' from origin 'chrome-extension://<ID>' 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);
}
}
Expand Down

0 comments on commit b76795b

Please sign in to comment.