OpenInApp: Fix links in messages

This commit is contained in:
Vendicated 2023-11-04 18:59:16 +01:00 committed by Luna
parent 3c3b6382cb
commit a5ca0946b3

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