stevemcilwaine
10/24/2019 - 1:43 PM

iOS Check with vanilla JS

Quick check to see if the device is an iOS device

const iOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;