We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52e1e84 commit 370e8a6Copy full SHA for 370e8a6
src/main.js
@@ -191,6 +191,10 @@ function _unregisterServiceWorkers() {
191
const SESSION_RESTART_ONCE_DUE_TO_CRITICAL_ERROR = "SESSION_RESTART_ONCE_DUE_TO_CRITICAL_ERROR";
192
193
async function _recoverOnFailure(err) {
194
+ if (!Phoenix.isNativeApp && !navigator.onLine) {
195
+ alert('No internet connection. Please check your connection and reload page.');
196
+ return;
197
+ }
198
// metrics api might not be available here as we were seeing no metrics raised. Only bugsnag there.
199
window.logger && window.logger.reportError(err,
200
'Critical error when loading brackets. Trying to reload again.');
0 commit comments