diff options
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/main.ts | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/client/src/main.ts b/client/src/main.ts index 432db0eac..159c47e86 100644 --- a/client/src/main.ts +++ b/client/src/main.ts | |||
@@ -25,7 +25,19 @@ const bootstrap = () => platformBrowserDynamic() | |||
25 | return bootstrapModule | 25 | return bootstrapModule |
26 | }) | 26 | }) |
27 | .catch(err => { | 27 | .catch(err => { |
28 | logger.error(err) | 28 | try { |
29 | logger.error(err) | ||
30 | } catch (err2) { | ||
31 | console.error('Cannot log error', { err, err2 }) | ||
32 | } | ||
33 | |||
34 | // Ensure we display an "incompatible message" on Angular bootstrap error | ||
35 | setTimeout(() => { | ||
36 | if (document.querySelector('my-app').innerHTML === '') { | ||
37 | throw err | ||
38 | } | ||
39 | }, 1000) | ||
40 | |||
29 | return null | 41 | return null |
30 | }) | 42 | }) |
31 | 43 | ||