You should show a message in the browser instead of crashing your app.