mirror of
https://github.com/mempool/mempool.git
synced 2025-04-10 21:09:30 +02:00
Change template keys in generate-config script
This commit is contained in:
parent
81d35d9401
commit
b77fe0dca2
@ -75,7 +75,7 @@ const newConfig = `(function (window) {
|
||||
|
||||
const newConfigTemplate = `(function (window) {
|
||||
window.__env = window.__env || {};${settings.reduce((str, obj) => `${str}
|
||||
window.__env.${obj.key} = ${typeof obj.value === 'string' ? `'\${${obj.key}}'` : `\${${obj.key}}`};`, '')}
|
||||
window.__env.${obj.key} = ${typeof obj.value === 'string' ? `'\${__${obj.key}__}'` : `\${__${obj.key}__}`};`, '')}
|
||||
window.__env.GIT_COMMIT_HASH = '${gitCommitHash}';
|
||||
window.__env.PACKAGE_JSON_VERSION = '${packetJsonVersion}';
|
||||
}(this));`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user