I
I
Ilya Kuminov2021-11-22 09:57:38
React
Ilya Kuminov, 2021-11-22 09:57:38

Console, how to put a condition?

Hello, I have a question. I have a site, there is an error on it, I want to condition the operation of a certain function every time an error occurs.
What are the implementation options for this method?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2021-11-22
@Aetae

try-catch ?
Well, or hardcore - window.onerror .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question