diff options
author | Chocobozzz <me@florianbigard.com> | 2023-02-27 15:18:47 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-02-27 15:28:57 +0100 |
commit | 92a6e85fe7679b47bb61f7ff6bc757c7ee75a440 (patch) | |
tree | d8186688a1d0829a38a1fc68e78ae397fda9b5b9 /client/src/main.ts | |
parent | 20934c82b6390f34610aa8190e8835b202830f55 (diff) | |
download | PeerTube-92a6e85fe7679b47bb61f7ff6bc757c7ee75a440.tar.gz PeerTube-92a6e85fe7679b47bb61f7ff6bc757c7ee75a440.tar.zst PeerTube-92a6e85fe7679b47bb61f7ff6bc757c7ee75a440.zip |
Breaking: remove ios 11, safari 11 support
Angular doesn't support these web browsers anymore
Safari 11 and iOS 11 are not supported anymore by Apple
Diffstat (limited to 'client/src/main.ts')
-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 | ||