'use strict';

const userAgent = window.navigator.userAgent;
/**
 *
 */
function isIOSDevice() {
    return /iPad|iPhone|iPod/i.test(userAgent) && !window.MSStream;
}
/**
 *
 */
function isAndroidDevice() {
    return /Android/i.test(userAgent);
}
/**
 *
 */
function isMobileDevice() {
    return isAndroidDevice() || isIOSDevice();
}

exports.isAndroidDevice = isAndroidDevice;
exports.isIOSDevice = isIOSDevice;
exports.isMobileDevice = isMobileDevice;
