What I need is a way to await and detect whether the user confirmed the redirect that is initiated from the javascript.
Specifiaclly im trying to redirect to a custom URL scheme that I registered in the users windows registry to launch the desktop application.
it is required for the user to launch the application for the web app to operate after that point.
I know i can ping the app every couple of seconds and if it doesnt respond once in 30 seconds give up and assume user decided to deny the redirect, but that is a hack id rather avoid.
So I guess id like the redirect to behave like a call to the confirm(…) method.
Is this possible, and if it is how would i achieve that effect.