aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/settings.tsx
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-05-02 02:50:51 +0200
committerGitHub <noreply@github.com>2023-05-02 02:50:51 +0200
commitc62d05e1b32361425474928004a92338d98ba200 (patch)
tree63e2d718807055dbdbbe7d2624270d8aa138fa2d /src/plugins/settings.tsx
parent6a1cb133cd6cbe2946e4c830291318e873da1d8b (diff)
downloadVencord-c62d05e1b32361425474928004a92338d98ba200.tar.gz
Vencord-c62d05e1b32361425474928004a92338d98ba200.tar.bz2
Vencord-c62d05e1b32361425474928004a92338d98ba200.zip
Refactor ipc to be strongly typed and hide impl details (#1018)
Diffstat (limited to 'src/plugins/settings.tsx')
-rw-r--r--src/plugins/settings.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/settings.tsx b/src/plugins/settings.tsx
index 5dec83c..6fd424c 100644
--- a/src/plugins/settings.tsx
+++ b/src/plugins/settings.tsx
@@ -155,12 +155,12 @@ export default definePlugin({
},
get electronVersion() {
- return VencordNative.getVersions().electron || window.armcord?.electron || null;
+ return VencordNative.native.getVersions().electron || window.armcord?.electron || null;
},
get chromiumVersion() {
try {
- return VencordNative.getVersions().chrome
+ return VencordNative.native.getVersions().chrome
// @ts-ignore Typescript will add userAgentData IMMEDIATELY
|| navigator.userAgentData?.brands?.find(b => b.brand === "Chromium" || b.brand === "Google Chrome")?.version
|| null;