javascript chrome 的 user.agent 值

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11919301/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-26 14:45:45  来源:igfitidea点击:

user.agent value for chrome

javascriptgwtgoogle-chrome-devtools

提问by Charith De Silva

Quick question. What's the user.agent value for chrome browser with gwt 2.4? I'm trying to limit permutations for my chrome and it doesn't compile (value used - 'chrome'). However this compiles properly

快速提问。gwt 2.4 的 Chrome 浏览器的 user.agent 值是多少?我正在尝试限制我的 chrome 的排列,但它无法编译(使用的值 - 'chrome')。但是,这可以正确编译

<set-property name="user.agent" value="safari" />   

回答by dhamibirendra

The permutations for both safari and chrome are same and named as "safari". The safari setting will work for chrome also. You can check "com.google.gwt.user.rebind.UserAgentPropertyGenerator".

safari 和 chrome 的排列相同,并命名为“safari”。Safari 设置也适用于 chrome。您可以检查“com.google.gwt.user.rebind.UserAgentPropertyGenerator”。

However if you wish to limit it for chrome particulary, you can see here

但是,如果您希望针对 chrome 特别限制它,您可以在此处查看