$0.06

How to check if a web-worker file doesn't exists?

Ask a question+
0

I am trying to use a web-worker file using Worker API. How can I handle or check if the file doesn’t exist, before moving further.

I want to know a fallback, if file doesn’t even exist or misplaced by-chance.

new Worker('web_workers.js')

Expecting a variable or function, on which I can add if-else condition.

add comment

0 Answer

Your Answer