diff options
author | V <vendicated@riseup.net> | 2023-05-02 02:50:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-02 02:50:51 +0200 |
commit | c62d05e1b32361425474928004a92338d98ba200 (patch) | |
tree | 63e2d718807055dbdbbe7d2624270d8aa138fa2d /src/plugins/settings.tsx | |
parent | 6a1cb133cd6cbe2946e4c830291318e873da1d8b (diff) | |
download | Vencord-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.tsx | 4 |
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; |