How to check for Crosswalk WebView user agent?
问题 I need to check if a mobile user is accessing the website through a Crosswalk WebView and enable/disable some niceties. How can I check if user is accessing using Crosswalk WebView? What is the user string for Crosswalk WebView? 回答1: Found the correct user agent string for crosswalk webview on GitHub: if(navigator.userAgent.toLowerCase().indexOf('crosswalk') > -1) { // this is crosswalk view } else { // this is NOT crosswalk view } 来源: https://stackoverflow.com/questions/36945869/how-to-check