Giving higher preference to window variables instead of build variables in configuration. (#644)
This is because window configurations have been set by the user while the build configurations have been set by the build script.
This commit is contained in:
parent
6ef5838cd8
commit
20d85d8949
|
|
@ -103,8 +103,8 @@ const getConfigsFromEnvVars = (): INJECTED_CONFIGS => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const getConfig = (fromENV: string, fromWindow: string) => {
|
const getConfig = (fromENV: string, fromWindow: string) => {
|
||||||
if (fromENV.length > 0) return { enabled: true, value: fromENV };
|
if (fromWindow.length > 0) return { enabled: true, value: fromWindow };
|
||||||
else if (fromWindow.length > 0) return { enabled: true, value: fromWindow };
|
else if (fromENV.length > 0) return { enabled: true, value: fromENV };
|
||||||
return { enabled: false, value: "" };
|
return { enabled: false, value: "" };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user