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 | |
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
-rw-r--r-- | client/.browserslistrc | 4 | ||||
-rw-r--r-- | client/e2e/wdio.browserstack.conf.ts | 4 | ||||
-rw-r--r-- | client/src/main.ts | 14 | ||||
-rw-r--r-- | client/webpack/webpack.video-embed.js | 4 |
4 files changed, 21 insertions, 5 deletions
diff --git a/client/.browserslistrc b/client/.browserslistrc new file mode 100644 index 000000000..9eb6a61de --- /dev/null +++ b/client/.browserslistrc | |||
@@ -0,0 +1,4 @@ | |||
1 | last 1 Chrome version | ||
2 | last 2 Edge major versions | ||
3 | Firefox ESR | ||
4 | ios_saf >= 13.1 | ||
diff --git a/client/e2e/wdio.browserstack.conf.ts b/client/e2e/wdio.browserstack.conf.ts index 944df8bdd..b40de8fa3 100644 --- a/client/e2e/wdio.browserstack.conf.ts +++ b/client/e2e/wdio.browserstack.conf.ts | |||
@@ -64,7 +64,7 @@ module.exports = { | |||
64 | }, | 64 | }, |
65 | { | 65 | { |
66 | browserName: 'Safari', | 66 | browserName: 'Safari', |
67 | browserVersion: '11.1', | 67 | browserVersion: '12.1', |
68 | 68 | ||
69 | ...buildBStackDesktopOptions('Safari Desktop', '1280x1024') | 69 | ...buildBStackDesktopOptions('Safari Desktop', '1280x1024') |
70 | }, | 70 | }, |
@@ -87,7 +87,7 @@ module.exports = { | |||
87 | { | 87 | { |
88 | browserName: 'Safari', | 88 | browserName: 'Safari', |
89 | 89 | ||
90 | ...buildBStackMobileOptions('Safari iPhone', 'iPhone SE', '11') | 90 | ...buildBStackMobileOptions('Safari iPhone', 'iPhone 7', '12') |
91 | }, | 91 | }, |
92 | { | 92 | { |
93 | browserName: 'Safari', | 93 | browserName: 'Safari', |
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 | ||
diff --git a/client/webpack/webpack.video-embed.js b/client/webpack/webpack.video-embed.js index 120eedade..e25677872 100644 --- a/client/webpack/webpack.video-embed.js +++ b/client/webpack/webpack.video-embed.js | |||
@@ -179,7 +179,7 @@ module.exports = function () { | |||
179 | ecma: 6, | 179 | ecma: 6, |
180 | warnings: false, | 180 | warnings: false, |
181 | ie8: false, | 181 | ie8: false, |
182 | safari10: true, | 182 | safari10: false, |
183 | mangle: true, | 183 | mangle: true, |
184 | compress: { | 184 | compress: { |
185 | passes: 3, | 185 | passes: 3, |
@@ -214,7 +214,7 @@ function getBabelLoader () { | |||
214 | presets: [ | 214 | presets: [ |
215 | [ | 215 | [ |
216 | '@babel/preset-env', { | 216 | '@babel/preset-env', { |
217 | targets: 'last 1 Chrome version, last 2 Edge major versions, Firefox ESR, Safari >= 11, ios_saf >= 11' | 217 | targets: 'last 1 Chrome version, last 2 Edge major versions, Firefox ESR, Safari >= 12, ios_saf >= 12' |
218 | } | 218 | } |
219 | ] | 219 | ] |
220 | ] | 220 | ] |