Limit download button to Google Chrome

As discussed on ticket the download button only appears
to work on Google Chrome on mobile browsers.

Bug: T179529
Bug: T179914
Change-Id: I8bbda8d5a8aa42dd23773fea424c1a70e31d6f85
This commit is contained in:
jdlrobson 2017-11-07 09:28:28 -08:00 committed by Jdlrobson
parent 9fa40f81d8
commit 7697c262db
1 changed files with 4 additions and 1 deletions

View File

@ -232,7 +232,10 @@
config.get( 'wgMinervaDownloadIcon' ) &&
!page.isMainPage() &&
// The iOS print dialog does not provide pdf functionality (see T177215)
!browser.isIos()
!browser.isIos() &&
// Currently restricted to Chrome (T179529) until we have good fallbacks for browsers
// which do not provide print functionality
window.chrome !== undefined
) {
// Because the page actions are floated to the right, their order in the
// DOM is reversed in the display. The watchstar is last in the DOM and