mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-19 19:55:51 +00:00
19 lines
352 B
JavaScript
19 lines
352 B
JavaScript
|
|
exports.get_config = get_config;
|
|
|
|
function get_config() {
|
|
var config = { };
|
|
try {
|
|
config = require('./config');
|
|
} catch(exception) {
|
|
config = require('./config-example');
|
|
}
|
|
return load_config(config);
|
|
}
|
|
|
|
exports.load_config = load_config;
|
|
|
|
function load_config(config) {
|
|
return( require('../src/js/ripple/config')).load(config);
|
|
}
|