mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 18:58:10 +00:00
FIX: Limit PWA install banner to Android for now
This commit is contained in:
parent
5bd6b70d98
commit
72c2818655
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user