Don't run store migrations on renderer (#3968)

This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-10-08 09:15:40 -04:00
1 parent 40835ae3a2
commit 0cd3931d67
3 files changed
+12 -4

No files matched your search

@@ -19,12 +19,12 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
import { app } from "electron";
import fse from "fs-extra";
import path from "path";
import { getPath } from "../../common/utils/getPath";
export function fileNameMigration() {
const userDataPath = getPath("userData");
const userDataPath = app.getPath("userData");
const configJsonPath = path.join(userDataPath, "config.json");
const lensUserStoreJsonPath = path.join(userDataPath, "lens-user-store.json");