Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The clearOverride method of the PreferenceObject interface resets the override value.
clearOverrides()None.
None (undefined).
The following example clears the override of the color scheme.
navigator.preferences.colorScheme.clearOverride();
console.log(navigator.preferences.colorScheme.override);