From 9a6ecbed7052c35f6aae1f8bb95055ddb9a4b713 Mon Sep 17 00:00:00 2001 From: ririxi Date: Thu, 11 Jan 2024 19:04:33 +0100 Subject: [PATCH] fix(wrapper): modify the keywords to find `playlistMenuChunk` (#2762) --- biome.json | 2 +- jsHelper/spicetifyWrapper.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/biome.json b/biome.json index da37352226..8e5dcb09f4 100644 --- a/biome.json +++ b/biome.json @@ -1,5 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/1.5.0/schema.json", + "$schema": "https://biomejs.dev/schemas/1.5.1/schema.json", "organizeImports": { "enabled": true }, diff --git a/jsHelper/spicetifyWrapper.js b/jsHelper/spicetifyWrapper.js index e32a6fba16..da69df7721 100644 --- a/jsHelper/spicetifyWrapper.js +++ b/jsHelper/spicetifyWrapper.js @@ -566,7 +566,7 @@ window.Spicetify = { }); const playlistMenuChunk = Object.entries(require.m).find( - ([, value]) => value.toString().includes('value:"playlist"') && value.toString().includes("contextmenu") + ([, value]) => value.toString().includes('value:"playlist"') && value.toString().includes("canView") && value.toString().includes("permissions") ); if (playlistMenuChunk) Spicetify.ReactComponent.PlaylistMenu = Object.values(require(playlistMenuChunk[0])).find(m => typeof m === "function" || typeof m === "object");