Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.init = function init() {
if(typeof(mime.add) != 'undefined') {
mime.add ('valve/data-file', ['vdf']);
}
var directory = path.dirname(App.getPath('exe'));
if(new RegExp('node_modules', 'gi').test(directory)) {
directory = App.getAppPath();
}
_config = directory + path.sep + 'config.json';
Logger.info('Set Configuration-Path: ' + _config);
};