var _isAndroid;

/**
 * 根据UA判断是否为Android系统
 * @returns
 */
function isAndroid() {
  if (_isAndroid === undefined) {
    var ua = navigator.userAgent;
    _isAndroid = /Android/i.test(ua) || /Linux/i.test(ua);
  }

  return _isAndroid;
}

export default isAndroid;
