mirror of https://github.com/status-im/codimd.git
9 lines
200 B
JavaScript
9 lines
200 B
JavaScript
|
'use strict'
|
||
|
|
||
|
exports.toBooleanConfig = function toBooleanConfig (configValue) {
|
||
|
if (configValue && typeof configValue === 'string') {
|
||
|
return (configValue === 'true')
|
||
|
}
|
||
|
return configValue
|
||
|
}
|