Sets whether to use client hints APIs in tests for codepaths that
- were originally implemented as checks against the navigator.userAgent
string.
- have an alternative implementation that uses Client Hints APIs.
See the jsdoc on useClientHints for cases where this flag will be
ineffective, and the Client Hints APIs would be used regardless.
DO NOT call this function in production code - it will cause de-optimization.
Parameters | use | boolean | | Whether or not to use Client Hints API codepaths in
goog.labs.useragent.* modules.
|
|
---|