addCustom method

Adds a custom user agent (UA) string with a category of "Custom" into the collection of UA strings.

Note  These APIs can only be used with F12 developer tools and the Diagnostics Script Engine, and can't be called from JavaScript.

 

 

Syntax

DiagnosticsUserAgentStringManager.addCustom(sName, value);

Parameters

  • sName [in]
    Type: DOMString

    Friendly name for UA string.

  • value [in]
    Type: DOMString

    Actual value for UA string.

Return value

This method does not return a value.

See also

DiagnosticsUserAgentStringManager