Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix embed compat with safari 10

Chocobozzz2873f00bd89d
diff --git a/client/package.json b/client/package.json
index bf7ef3639a..7482b15eb4 100644
--- a/client/package.json
+++ b/client/package.json
@@ -126,7 +126,6 @@
"stream-http": "^3.0.0",
"stylelint": "^14.9.1",
"stylelint-config-sass-guidelines": "^9.0.1",
- "terser-webpack-plugin": "^5.3.3",
"ts-loader": "^9.3.0",
"tslib": "^2.4.0",
"typescript": "~4.7.3",
diff --git a/client/webpack/webpack.video-embed.js b/client/webpack/webpack.video-embed.js
index 13bcf97173..f5c75dd475 100644
--- a/client/webpack/webpack.video-embed.js
+++ b/client/webpack/webpack.video-embed.js
@@ -188,6 +188,7 @@ module.exports = function () {
ecma: 6,
warnings: false,
ie8: false,
+ safari10: true,
mangle: true,
compress: {
passes: 3,
diff --git a/client/yarn.lock b/client/yarn.lock
index 590c3128a7..e8ba390294 100644
--- a/client/yarn.lock
+++ b/client/yarn.lock
@@ -10902,7 +10902,7 @@ temp-fs@^0.9.9:
dependencies:
rimraf "~2.5.2"
-terser-webpack-plugin@^5.1.3, terser-webpack-plugin@^5.3.3:
+terser-webpack-plugin@^5.1.3:
version "5.3.3"
resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-5.3.3.tgz#8033db876dd5875487213e87c627bca323e5ed90"
integrity sha512-Fx60G5HNYknNTNQnzQ1VePRuu89ZVYWfjRAeT5rITuCY/1b08s49e5kSQwHDirKZWuoKOBRFS98EUUoZ9kLEwQ==