mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-18 10:57:04 -04:00
Some Fixes
This commit is contained in:
parent
938bc9f34e
commit
1ab88e8eeb
7 changed files with 12 additions and 185 deletions
|
@ -47,4 +47,4 @@ export default definePlugin({
|
|||
}
|
||||
return false;
|
||||
}
|
||||
});
|
||||
});
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue