UNPKG

is-ua-webview

Version:

useragent parsing for webview detection

12 lines (11 loc) 487 B
module.exports = [ // if it says it's a webview, let's go with that 'WebView', // iOS webview will be the same as safari but missing "Safari" '(iPhone|iPod|iPad)(?!.*Safari)', // Android Lollipop and Above: webview will be the same as native but it will contain "wv" // Android KitKat to Lollipop webview will put Version/X.X Chrome/{version}.0.0.0 'Android.*(;\\s+wv|Version/\\d.\\d\\s+Chrome/\\d+(\\.0){3})', // old chrome android webview agent 'Linux; U; Android' ]