Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/modules / ___dist / utils / userAgent.js
Size: Mime:
"use strict";

// @TODO these should work browser and server
let USER_AGENT;
let iOS;
let webkit;
let iOSSafari;

if (!USER_AGENT) {
  USER_AGENT = window.navigator.userAgent;
  iOS = !!USER_AGENT.match(/iPad/i) || !!USER_AGENT.match(/iPhone/i);
  webkit = !!USER_AGENT.match(/WebKit/i);
  iOSSafari = iOS && webkit && !USER_AGENT.match(/CriOS/i);
}