add unpersisted property access

pull/3094/head
yann300 7 years ago
parent 589e4a783c
commit 4674cd4f24
  1. 9
      src/config.js

@ -4,6 +4,7 @@ var CONFIG_FILE = '.remix.config'
function Config (storage) {
this.items = {}
this.unpersistedItems = {}
// load on instantiation
try {
@ -44,6 +45,14 @@ function Config (storage) {
}
}
}
this.getUnpersistedProperty = function (key) {
return this.unpersistedItems[key]
}
this.setUnpersistedProperty = function (key, value) {
this.unpersistedItems[key] = value
}
}
module.exports = Config

Loading…
Cancel
Save