mirror of https://github.com/status-im/codimd.git
Fixed Syntax Error
This commit is contained in:
parent
bbde79c7d7
commit
8f1c97f4a4
|
@ -9,7 +9,11 @@ var config = require(path.join(__dirname, '..', 'config.json'))[env];
|
|||
var debug = process.env.DEBUG ? (process.env.DEBUG === 'true') : ((typeof config.debug === 'boolean') ? config.debug : (env === 'development'));
|
||||
|
||||
// Create function that reads docker secrets but fails fast in case of a non docker environment
|
||||
var handleDockerSecret = fs.existsSync('/run/secrets/') ? function(secret){return fs.existsSync('/run/secrets/' + secret) ? fs.readFileSync('/run/secrets/' + secret) : null;)} : function () {return null}
|
||||
var handleDockerSecret = fs.existsSync('/run/secrets/') ? function(secret) {
|
||||
return fs.existsSync('/run/secrets/' + secret) ? fs.readFileSync('/run/secrets/' + secret) : null;
|
||||
} : function() {
|
||||
return null
|
||||
};
|
||||
|
||||
// url
|
||||
var domain = process.env.DOMAIN || process.env.HMD_DOMAIN || config.domain || '';
|
||||
|
|
Loading…
Reference in New Issue