mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 17:56:30 -05:00
8 lines
200 B
JavaScript
8 lines
200 B
JavaScript
'use strict'
|
|
|
|
exports.toBooleanConfig = function toBooleanConfig (configValue) {
|
|
if (configValue && typeof configValue === 'string') {
|
|
return (configValue === 'true')
|
|
}
|
|
return configValue
|
|
}
|