import Helper from "./Helper";

const h = new Helper;

export let userItems;

if (h.detectEnvironment() === "development") {
    userItems = "./src/data/list.json";
} else if (h.detectEnvironment() === "production") {
    userItems = global.process.resourcesPath + "/app/src/data/list.json";
} else {
    throw `global | userItems: ${userItems}`;
}

export const settings = "./src/data/settings.json";
@@ -69,16 +69,37 @@
 erItems;
+%0Aexport let settings;
 %0A%0Aif (h.
@@ -175,24 +175,67 @@
 list.json%22;%0A
+    settings = %22./src/data/settings.json%22;%0A
 %7D else if (h
@@ -353,113 +353,129 @@
 n%22;%0A
-%7D else %7B%0A    throw %60global %7C userItems: $%7BuserItems%7D%60;%0A%7D%0A%0Aexport const settings = %22./src/data/settings.json%22;
+    settings = global.process.resourcesPath + %22/app/src/data/settings.json%22;%0A%7D else %7B%0A    throw %22Can't detect environment%22;%0A%7D

Fix wrong path to settings in production