How to detect iOS 13 on JavaScript?
问题 I use this function to detect iOS export function isiOS() { return navigator.userAgent.match(/ipad|iphone/i); } is there any way to make it detected iOS13+? thanks Why do I need it? usually, iOS safari can't download files therefore to make image downloadable I should render it as <img src={qrImage} alt="creating qr-key..." /> however on Android/PC and pretty much everywhere else it's possible to do it directly via <a href={qrImage} download="filename.png"> <img src={qrImage} alt="qr code" />