Last active
March 5, 2019 15:46
-
-
Save 4knort/6da1f67a4999a0d862ac5e2985b702b8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function getConfig() { | |
let overrideConfig; | |
try{ | |
overrideConfig= JSON.parse('{###JSON_CONFIG###}') | |
} catch { | |
overrideConfig = {} | |
} | |
return { | |
...defaultConfig, | |
...overrideConfig | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment