This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Returns the iOS version as string. For example 14.4.2 or 13.2.3. | |
* If the browser is not running under iOS "undefined" is returned. | |
*/ | |
function iOsGetVersion() | |
{ | |
const agentName = window.navigator.userAgent; | |
const matchingArray = agentName.match(/(iPhone|iPad).+ ([0-9_]+) .+/); | |
if( matchingArray ) { |