FIX: Limit PWA install banner to Android for now

This commit is contained in:
Rafael dos Santos Silva 2019-08-20 14:47:17 -03:00
parent 5bd6b70d98
commit 72c2818655

View File

@ -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