Ghost/core/server/utils/labs.js
kirrg001 0ae0a0b490 🎨 change how we get and set config
refs #6982
- a replace for all config usages
- always use config.get or config.set
- this a pure replacement, no logic has changed

[ci skip]
2016-09-20 15:59:34 +01:00

11 lines
242 B
JavaScript

var config = require('../config'),
flagIsSet;
flagIsSet = function flagIsSet(flag) {
var labsConfig = config.get('labs');
return labsConfig && labsConfig[flag] && labsConfig[flag] === true;
};
module.exports.isSet = flagIsSet;