Which browser is being used?

0
I want to check which browser is being used by the user e.g Chrome, IE etc. So that I can display to switch to chrome if it’s not chrome. Can you please suggest how we can do that? Thank you!
asked
1 answers
0

Hi

Please add Javascript action & call Nanoflow on the load of the page or on any actions

function checkBrowser() { 
            // Get the user-agent string 
            let userAgentString =  
                navigator.userAgent; 
          
            // Detect Chrome 
            let chromeAgent =  
                userAgentString.indexOf("Chrome") > -1; 
}

 

answered