I have a web page that works in Chrome but on on a...
# javascript
p
I have a web page that works in Chrome but on on an iPad. Q: Is there a way to have JavaScript not fail silently but to display the error on the page? In Chrome I always have the developer console open but on the iPad I don't think I've got that option.
You can also push errors to a modal or alert, but make sure that's not exposed to users in prod
😀 1
e
I would check the version of Safari first in your code. You may need to do a redirect and use css & vanilla javascript to accomplish want you to want with Safri.
b
You can use DevTools from Safari. Chrome on an iPad is running the Safari engine anyway. You need to plug the iPad into your Mac to achieve this.
s
Is there a way to have JavaScript not fail silently but to display the error on the page
Yes, but are you wanting it for everyone or just the devs
And when you say on the page do you mean literally as in a message showing on the page?