Skip to content

Commit

Permalink
Stop showing mobile store banners for current users (mozilla#14942)
Browse files Browse the repository at this point in the history
* Stop showing firefox-app-store-banner for current users

Co-authored-by: Ingi-Hong <ingihong@bu.edu>

* Simplify to just Mozilla.Client

---------

Co-authored-by: Ingi-Hong <ingihong@bu.edu>
  • Loading branch information
janbrasna and Ingi-Hong authored Aug 27, 2024
1 parent fc71750 commit d32bb17
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions media/js/base/banners/firefox-app-store-banner.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ function onLoad() {

if (
window.Mozilla.run &&
window.site &&
(window.site.platform === 'android' || window.site.platform === 'ios')
window.Mozilla.Client &&
window.Mozilla.Client.isMobile &&
!window.Mozilla.Client.isFirefox
) {
window.Mozilla.run(onLoad);
}

0 comments on commit d32bb17

Please sign in to comment.