Firefox Tomorrow

web api instance method

PreferenceObject: clearOverride() method

View on MDN ↗

Limited availabilitySecure context

The clearOverride method of the PreferenceObject interface resets the override value.

Syntax

clearOverrides()

Parameters

None.

Return value

None (undefined).

Examples

Basic usage

The following example clears the override of the color scheme.

navigator.preferences.colorScheme.clearOverride();
console.log(navigator.preferences.colorScheme.override);

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.