mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-07-22 20:26:50 +00:00
build
config
core
assets
config
config.js
default.build.options.js
default.coin.config.js
default.crypto.config.js
default.styles.config.js
default.user.config.js
load-config.js
emoji
exports
font
language
memory-pow
public
server
sound
src
tooling
.eslintignore
.eslintrc.json
ui-core.js
crypto
img
lib
locales
plugins
scripts
snap
splash
.editorconfig
.eslintrc.json
.gitattributes
.gitignore
.travis.yml
CONTRIBUTING.md
LICENSE
README.md
build-setup.js
build.bat
build.js
build.sh
electron-builder.yml
electron.js
install-dependencies.sh
package-lock.json
package.json
push-updates-with-travis-build.sh
run_server.bat
server.js
set-up-snap.sh
watch-inline.js
watch.js
22 lines
523 B
JavaScript
22 lines
523 B
JavaScript
let config = require('./config.js')
|
|
|
|
const checkKeys = (storeObj, newObj) => {
|
|
for (const key in newObj) {
|
|
if (!Object.prototype.hasOwnProperty.call(storeObj, key)) return
|
|
|
|
if (typeof newObj[key] === 'object') {
|
|
storeObj[key] = checkKeys(storeObj[key], newObj[key])
|
|
} else {
|
|
storeObj[key] = newObj[key]
|
|
}
|
|
}
|
|
return storeObj
|
|
}
|
|
|
|
const getConfig = customConfig => {
|
|
config = checkKeys(config, customConfig)
|
|
return config
|
|
}
|
|
|
|
module.exports = getConfig
|