Some Fixes

This commit is contained in:
thororen 2024-06-24 00:40:01 -04:00
parent 938bc9f34e
commit 1ab88e8eeb
7 changed files with 12 additions and 185 deletions

View file

@ -47,4 +47,4 @@ export default definePlugin({
}
return false;
}
});
});

View file

@ -158,11 +158,11 @@ export default definePlugin({
handleAccountView(event: { preventDefault(): void; }, platformType: string, userId: string) {
if (platformType === "spotify" && settings.store.spotify) {
VencordNative.native.openExternal(`spotify:user:${userId}`);
event.preventDefault();
event.preventDefault;
} else if (platformType === "steam" && settings.store.steam) {
VencordNative.native.openExternal(`steam://openurl/https://steamcommunity.com/profiles/${userId}`);
showToast("Opened link in Steam", Toasts.Type.SUCCESS);
event.preventDefault();
event.preventDefault;
}
}
});