expose prefs.defaults

This commit is contained in:
tophf 2017-12-16 03:40:41 +03:00
parent 2c47407afb
commit 50d3dbe394

View File

@ -105,7 +105,10 @@ var prefs = new function Prefs() {
// coalesce multiple pref changes in broadcast // coalesce multiple pref changes in broadcast
let broadcastPrefs = {}; let broadcastPrefs = {};
Object.defineProperty(this, 'readOnlyValues', {value: {}}); Object.defineProperties(this, {
defaults: {value: deepCopy(defaults)},
readOnlyValues: {value: {}},
});
Object.assign(Prefs.prototype, { Object.assign(Prefs.prototype, {