aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/ify.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/ify.ts')
-rw-r--r--src/plugins/ify.ts9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/plugins/ify.ts b/src/plugins/ify.ts
index 76cfa59..e0d5481 100644
--- a/src/plugins/ify.ts
+++ b/src/plugins/ify.ts
@@ -7,17 +7,14 @@ export default definePlugin({
patches: [
{
find: '.displayName="SpotifyStore"',
- replacement: {
+ replacement: [{
match: /\.isPremium=.;/,
replace: ".isPremium=true;",
- },
- },
- {
- find: '.displayName="SpotifyStore"',
- replacement: ["SPEAKING", "VOICE_STATE_UPDATES", "MEDIA_ENGINE_SET_DESKTOP_SOURCE"].map(event => ({
+ }, ...["SPEAKING", "VOICE_STATE_UPDATES", "MEDIA_ENGINE_SET_DESKTOP_SOURCE"].map(event => ({
match: new RegExp(`${event}:function\\(.\\){.+?}(,|}\\))`),
replace: (_, ending) => `${event}:function(){}${ending}`,
})),
+ ],
},
]
});