mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 11:34:24 +03:00
4bfacf6b86
refs #6165 - Use the settings cache to populate config.labs whenever settings change - Use the labs util just to check if a flag isSet synchronously
11 lines
223 B
JavaScript
11 lines
223 B
JavaScript
var config = require('../config'),
|
|
flagIsSet;
|
|
|
|
flagIsSet = function flagIsSet(flag) {
|
|
var labsConfig = config.labs;
|
|
|
|
return !!labsConfig[flag] && labsConfig[flag] === true;
|
|
};
|
|
|
|
module.exports.isSet = flagIsSet;
|