5,798
edits
No edit summary |
No edit summary |
||
Line 847: | Line 847: | ||
function showIOSAppDownloadLink() { | function showIOSAppDownloadLink() { | ||
const shouldShowDownload = window.navigator.userAgent.match(/iPhone|iPad|iPod/i) && !window.navigator.userAgent.includes('gonative melvorwiki'); | |||
const els = document.getElementsByClassName('ios-app-download'); | |||
els.forEach((el) => { | |||
if(shouldShowDownload) { | |||
el.style.display = 'block'; | |||
} | } | ||
else { | |||
el.style.display = 'none'; | |||
} | |||
}); | |||
} | } | ||