From 492b0cff0888452096d5c2ba45258e769f4f4ff1 Mon Sep 17 00:00:00 2001 From: Joona <69722179+Masterjoona@users.noreply.github.com> Date: Sat, 21 Sep 2024 18:22:19 +0300 Subject: [PATCH] OpenInApp: Fix opening in spotify activity cards for web (#2894) --- src/plugins/openInApp/index.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/plugins/openInApp/index.ts b/src/plugins/openInApp/index.ts index 7b62831f..576980cb 100644 --- a/src/plugins/openInApp/index.ts +++ b/src/plugins/openInApp/index.ts @@ -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: {