I'm trying to open an app with the window.location.href, I want to open it or if it fails, I want to download the app. This system is used by many software such as Zoom. When i click the button to open the app, if it is not installed, the console gives me this error:
Failed to launch 'x://x because the scheme does not have a registered handler.
If I catch this error, I can try to download the app, but I don't know how to catch this. I try to catch this it is not catching this error. When I try with window.open or window.location.href nothing is working.