← Back to Emulation domain

Emulation.setDataSaverOverride

Override the value of navigator.connection.saveData

Domain: Emulation experimental

Parameters

NameTypeDescription
dataSaverEnabled (optional)booleanOverride value. Omitting the parameter disables the override.

Example Request

{
  "id": 1,
  "method": "Emulation.setDataSaverOverride"
}

Example Response

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

Usage in Node.js

const result = await send('Emulation.setDataSaverOverride');
console.log(result);