OpenInApp: Fix opening in spotify activity cards for web (#2894)
This commit is contained in:
parent
2d675b4b2e
commit
492b0cff08
|
@ -100,6 +100,20 @@ export default definePlugin({
|
||||||
replace: "true$1VencordNative.native.openExternal"
|
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,",
|
find: ".CONNECTED_ACCOUNT_VIEWED,",
|
||||||
replacement: {
|
replacement: {
|
||||||
|
|
Loading…
Reference in a new issue