Bug fix after testing 3

Bug fix after testing 3
pull/932/head
Shahana Farooqui 2 years ago
parent ed7f9bbe65
commit 71a03eece1

@ -238,7 +238,7 @@ export const getConfig = (req, res, next) => {
}
else {
fileFormat = 'INI';
data = data.replace('\r\ncolor=#', '\r\ncolor=');
data = data.replace('color=#', 'color=');
jsonConfig = ini.parse(data);
if (jsonConfig['Application Options'] && jsonConfig['Application Options'].color) {
jsonConfig['Application Options'].color = '#' + jsonConfig['Application Options'].color;

@ -235,7 +235,7 @@ export const getConfig = (req, res, next) => {
jsonConfig = JSON.parse(data);
} else {
fileFormat = 'INI';
data = data.replace('\r\ncolor=#', '\r\ncolor=');
data = data.replace('color=#', 'color=');
jsonConfig = ini.parse(data);
if (jsonConfig['Application Options'] && jsonConfig['Application Options'].color) {
jsonConfig['Application Options'].color = '#' + jsonConfig['Application Options'].color;

Loading…
Cancel
Save