From 45671adae109896276af95b9d93c07072395128a Mon Sep 17 00:00:00 2001 From: Quang Lam Date: Sun, 15 Nov 2020 19:08:23 +0700 Subject: [PATCH] Hide more apps section in preferences on macOS (#254) --- src/components/pages/preferences/index.js | 66 +++++++++++++---------- 1 file changed, 38 insertions(+), 28 deletions(-) diff --git a/src/components/pages/preferences/index.js b/src/components/pages/preferences/index.js index f7260545..6cf45cdc 100644 --- a/src/components/pages/preferences/index.js +++ b/src/components/pages/preferences/index.js @@ -370,35 +370,45 @@ const Preferences = (props) => { - - More Apps - - - - requestOpenInBrowser('https://webcatalog.app?utm_source=translatium_app')} - className={classes.listItemPromotion} - > -
-
- WebCatalog -
-
-
- - WebCatalog - - - Turn Any Websites Into Desktop Apps - + {/* Apple doesn't allow this in Mac App Store version, + citing Guideline 2.4.5(iv) - Performance + They may not download or install standalone apps, kexts, + additional code, or resources to add functionality + or significantly change the app from what + we see during the review process. */} + {!window.process.mas && ( + <> + + More Apps + + + + requestOpenInBrowser('https://webcatalog.app?utm_source=translatium_app')} + className={classes.listItemPromotion} + > +
+
+ WebCatalog +
+
+
+ + WebCatalog + + + Turn Any Websites Into Desktop Apps + +
+
-
-
- - - - + + + + + + )}