From f37917f6ab92fc2616f5ce3dd5db8a39acd67c74 Mon Sep 17 00:00:00 2001 From: Syl Date: Thu, 29 Jun 2023 20:51:34 -0500 Subject: [PATCH] fix version details in settings page --- core/ipc/system/detailsStr.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/core/ipc/system/detailsStr.js b/core/ipc/system/detailsStr.js index 1f8ac62..70b4792 100644 --- a/core/ipc/system/detailsStr.js +++ b/core/ipc/system/detailsStr.js @@ -3,6 +3,8 @@ const dayOfWeek = [`Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Frid const pkg = require(`../../../package.json`); +console.log(pkg) + const appVersions = { "ezytdl": { "Version": pkg.version, @@ -16,8 +18,7 @@ const appVersions = { "Arch": process.arch, }, "Electron": { - "Version": pkg.devDependencies.electron.replace(`^`, ``), - "Builder": pkg.devDependencies[`electron-builder`].replace(`^`, ``), + "Version": process.versions.electron, } } @@ -53,6 +54,10 @@ module.exports = { }); }); - return res(details.slice(1)) + const returnStr = details.slice(1); + + console.log(returnStr) + + return res(returnStr) }) } \ No newline at end of file