OpenInApp: Fix links in messages

This commit is contained in:
Vendicated 2023-11-04 18:59:16 +01:00
parent a67c7f841d
commit 370b3d366d
No known key found for this signature in database
GPG Key ID: D66986BAF75ECF18

View File

@ -55,8 +55,8 @@ export default definePlugin({
{
find: "trackAnnouncementMessageLinkClicked({",
replacement: {
match: /(?<=handleClick:function\(\)\{return (\i)\}.+?)async function \1\(.+?\)\{/,
replace: "$& if(await $self.handleLink(...arguments)) return;"
match: /(?<=handleClick:function\(\)\{return (\i)\}.+?)function \1\(.+?\)\{/,
replace: "async $& if(await $self.handleLink(...arguments)) return;"
}
},
// Make Spotify profile activity links open in app on web