JSFiddle - React, Tailwind, and code Playground

JavaScript

var BrowserDetect = function() { 
var nav = window.navigator, 
ua = window.navigator.userAgent.toLowerCase(); 
// detect browsers (only the ones that have some kind of quirk we need to work around) 
var isChrome = !!window.chrome && !!window.chrome.webstore;
alert(isChrome);
if ((nav.appName.toLowerCase().indexOf("microsoft") != -1 || nav.appName.toLowerCase().match(/trident/gi) !== null)) 
return "IE"; 
if (ua.match(/chrome/gi) !== null) 
return "Chrome"; 
if (ua.match(/firefox/gi) !== null) 
return "Firefox"; 
if (ua.match(/webkit/gi) !== null) 
return "Webkit"; 
if (ua.match(/gecko/gi) !== null) 
return "Gecko"; 
if (ua.match(/opera/gi) !== null) 
return "Opera"; 
//If any case miss we will return null 
return null 
} 
document.write(BrowserDetect());