← Back to Emulation domain

Emulation.setNavigatorOverrides

Overrides value returned by the javascript navigator object.

Domain: Emulation deprecated

Parameters

NameTypeDescription
platformstringThe platform navigator.platform should return.

Example Request

{
  "id": 1,
  "method": "Emulation.setNavigatorOverrides",
  "params": {
    "platform": "platform-value"
  }
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('Emulation.setNavigatorOverrides', {"platform": "platform-value"});
console.log(result);