Skip to content

Commit

Permalink
fix version details in settings page
Browse files Browse the repository at this point in the history
  • Loading branch information
sylviiu committed Jun 30, 2023
1 parent 105cf88 commit f37917f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions core/ipc/system/detailsStr.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
}
}

Expand Down Expand Up @@ -53,6 +54,10 @@ module.exports = {
});
});

return res(details.slice(1))
const returnStr = details.slice(1);

console.log(returnStr)

return res(returnStr)
})
}

0 comments on commit f37917f

Please sign in to comment.