Is Safari - Node.js Environment

Node.js examples for Environment:Browser

Description

Is Safari

Demo Code


function isSafari() {
  var userAgent = navigator.userAgent;
  return (/Safari/gi).test(userAgent) &&
    !(/Chrome/gi).test(userAgent);//from  ww w .  j  a  v a 2s .co m
}

Related Tutorials