OpenInApp: Fix opening in spotify activity cards for web (#2894)

This commit is contained in:
Joona 2024-09-21 18:22:19 +03:00 committed by Nuckyz
parent 2d675b4b2e
commit 492b0cff08
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -100,6 +100,20 @@ export default definePlugin({
replace: "true$1VencordNative.native.openExternal"
}
},
{
find: "no artist ids in metadata",
predicate: () => !IS_DISCORD_DESKTOP && pluginSettings.store.spotify,
replacement: [
{
match: /\i\.\i\.isProtocolRegistered\(\)/g,
replace: "true"
},
{
match: /!\(0,\i\.isDesktop\)\(\)/,
replace: "false"
}
]
},
{
find: ".CONNECTED_ACCOUNT_VIEWED,",
replacement: {