mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-23 22:03:39 +00:00
Don't show download button if there's no window.print
Bug: T309591 Change-Id: I2e9b59cbf0e83942af0023c46052d7f2e784aa11
This commit is contained in:
parent
d3c451f87e
commit
ec3056265d
|
@ -33,6 +33,6 @@
|
|||
},
|
||||
{
|
||||
"resourceModule": "skins.minerva.scripts",
|
||||
"maxSize": "11.9KB"
|
||||
"maxSize": "12.0KB"
|
||||
}
|
||||
]
|
||||
|
|
|
@ -45,6 +45,11 @@
|
|||
var androidVersion = getAndroidVersion( userAgent ),
|
||||
chromeVersion = getChromeVersion( userAgent );
|
||||
|
||||
if ( typeof window.print !== 'function' ) {
|
||||
// T309591: No window.print support
|
||||
return false;
|
||||
}
|
||||
|
||||
// Download button is restricted to certain namespaces T181152.
|
||||
// Not shown on missing pages
|
||||
// Defaults to 0, in case cached JS has been served.
|
||||
|
|
Loading…
Reference in a new issue