FIX: Limit PWA install banner to Android for now

FIX: Limit PWA install banner to Android for now

diff --git a/app/assets/javascripts/discourse/components/pwa-install-banner.js.es6 b/app/assets/javascripts/discourse/components/pwa-install-banner.js.es6
index 069660a..c49fc81 100644
--- a/app/assets/javascripts/discourse/components/pwa-install-banner.js.es6
+++ b/app/assets/javascripts/discourse/components/pwa-install-banner.js.es6
@@ -43,6 +43,7 @@ export default Ember.Component.extend({
   @computed("deferredInstallPromptEvent", "bannerDismissed")
   showPWAInstallBanner() {
     return (
+      this.capabilities.isAndroid &&
       this.get("currentUser.trust_level") > 0 &&
       this.deferredInstallPromptEvent && // Pass the browser engagement checks
       !window.matchMedia("(display-mode: standalone)").matches && // Not be in the installed PWA already

GitHub sha: 72c28186

1 Like