Re: [whatwg/fetch] Proposal: Add a Mechanism to Suppress Console Errors for Expected Fetch Failures (Issue #1815)

origin721 left a comment (whatwg/fetch#1815)

or

```js
window.addEventListener('unhandledrejection', event => {
  if (event.reason instanceof DOMException && event.reason.suppressConsoleErrorOnce) {
    event.preventDefault();
    delete event.reason.suppressConsoleErrorOnce; // delete
  }
});

```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/1815#issuecomment-2724584887
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/issues/1815/2724584887@github.com>

Received on Friday, 14 March 2025 12:49:24 UTC