Ghost/core/server/utils/labs.js

11 lines
242 B
JavaScript
Raw Normal View History

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;