I have a app link something like this,
pudding://anime/87667266347
I want a kind of javascript to try to redirect to this url. and if redirection fails, do nothing, without alert and just stay on current page.
try{
window.location.href = "pudding://anime/87667266347";
}catch(error){
//do nothing
}
The code above seems can not dismiss the browser alert popup.
How can I achieve this?