@ohif-i18n 0.2.1: Prevent crashing when window.config is undefined
This commit is contained in:
1 parent
1b7625affd
commit
d2c773196f
2 files changed
+2
-2
No files matched your search
@@ -31,7 +31,7 @@ function addLocales(newLocales) {
|
||||
|
||||
// Note: Developers can add the API key to use the in-context editor.
|
||||
// DO NOT commit the API key
|
||||
const config = window.config.i18n || {};
|
||||
const config = (window.config && window.config.i18n) || {};
|
||||
|
||||
const locizeOptions = {
|
||||
projectId: config.LOCIZE_PROJECTID,
|
||||
|
||||
Reference in new issue
Block a user