aboutsummaryrefslogtreecommitdiff
path: root/src/ipcMain
diff options
context:
space:
mode:
authorVen <vendicated@riseup.net>2023-01-25 03:25:29 +0100
committerGitHub <noreply@github.com>2023-01-25 03:25:29 +0100
commitf19504f8282702bc6945a3d97acbee1a1fbe1b8d (patch)
tree0a84a831dbd4e3fa040b6b1287db4d309de7c5d9 /src/ipcMain
parenta38ac956dfaf53711a4cddea73ae1b8cf617211a (diff)
downloadVencord-f19504f8282702bc6945a3d97acbee1a1fbe1b8d.tar.gz
Vencord-f19504f8282702bc6945a3d97acbee1a1fbe1b8d.tar.bz2
Vencord-f19504f8282702bc6945a3d97acbee1a1fbe1b8d.zip
split up webpack commons into categories & type everything (#455)
Diffstat (limited to 'src/ipcMain')
-rw-r--r--src/ipcMain/updater/git.ts2
-rw-r--r--src/ipcMain/updater/http.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ipcMain/updater/git.ts b/src/ipcMain/updater/git.ts
index e787b8f..89c2d3c 100644
--- a/src/ipcMain/updater/git.ts
+++ b/src/ipcMain/updater/git.ts
@@ -28,7 +28,7 @@ const VENCORD_SRC_DIR = join(__dirname, "..");
const execFile = promisify(cpExecFile);
-const isFlatpak = Boolean(process.env.FLATPAK_ID?.includes("discordapp") || process.env.FLATPAK_ID?.includes("Discord"));
+const isFlatpak = process.platform === "linux" && Boolean(process.env.FLATPAK_ID?.includes("discordapp") || process.env.FLATPAK_ID?.includes("Discord"));
if (process.platform === "darwin") process.env.PATH = `/usr/local/bin:${process.env.PATH}`;
diff --git a/src/ipcMain/updater/http.ts b/src/ipcMain/updater/http.ts
index 25dc5ba..cc10631 100644
--- a/src/ipcMain/updater/http.ts
+++ b/src/ipcMain/updater/http.ts
@@ -49,7 +49,7 @@ async function calculateGitChanges() {
const res = await githubGet(`/compare/${gitHash}...HEAD`);
const data = JSON.parse(res.toString("utf-8"));
- return data.commits.map(c => ({
+ return data.commits.map((c: any) => ({
// github api only sends the long sha
hash: c.sha.slice(0, 7),
author: c.author.login,