diff options
author | sowgro <tpoke.ferrari@gmail.com> | 2023-09-20 14:56:03 -0400 |
---|---|---|
committer | sowgro <tpoke.ferrari@gmail.com> | 2023-09-20 14:56:03 -0400 |
commit | 2088eba08cec721551bda691aa4a1d7bd2606b2c (patch) | |
tree | 1d45b282d9fc629c4d1a858fca03e93f124f8ba8 | |
parent | e846215f0aa6c32993ea3403340dde1722b8cbc3 (diff) | |
download | betterLibrary-2088eba08cec721551bda691aa4a1d7bd2606b2c.tar.gz betterLibrary-2088eba08cec721551bda691aa4a1d7bd2606b2c.tar.bz2 betterLibrary-2088eba08cec721551bda691aa4a1d7bd2606b2c.zip |
fix app to work with latest spotify version
-rw-r--r-- | CustomApps/betterLibrary/betterlibrary.js (renamed from app/betterlibrary.js) | 8 | ||||
-rw-r--r-- | CustomApps/betterLibrary/index.js (renamed from app/index.js) | 0 | ||||
-rw-r--r-- | CustomApps/betterLibrary/loadcss.js (renamed from app/loadcss.js) | 0 | ||||
-rw-r--r-- | CustomApps/betterLibrary/manifest.json (renamed from app/manifest.json) | 0 | ||||
-rw-r--r-- | CustomApps/betterLibrary/style.css (renamed from app/style.css) | 0 |
5 files changed, 4 insertions, 4 deletions
diff --git a/app/betterlibrary.js b/CustomApps/betterLibrary/betterlibrary.js index f2f2d8c..7650f29 100644 --- a/app/betterlibrary.js +++ b/CustomApps/betterLibrary/betterlibrary.js @@ -26,12 +26,12 @@ function enableBetterLib() { sidebar.appendChild(text); if (Spicetify.Platform.History) lastSidebarMode = Spicetify.Platform.LocalStorageAPI.getItem("ylx-sidebar-state"); - lastSidebarSize = document.documentElement.style.getPropertyValue("--nav-bar-width"); + lastSidebarSize = document.documentElement.style.getPropertyValue("--left-sidebar-width"); Spicetify.Platform.LocalStorageAPI.setItem("ylx-sidebar-state",2); if (lastSidebarMode != 1) //uncollapes sidebar temporarily while in betterlibrary - document.documentElement.style.setProperty("--nav-bar-width", lastSidebarSize); + document.documentElement.style.setProperty("--left-sidebar-width", lastSidebarSize); else - document.documentElement.style.setProperty("--nav-bar-width", "280px"); + document.documentElement.style.setProperty("--left-sidebar-width", "280px"); betterLibIsEnabled = true; } }); @@ -41,7 +41,7 @@ function disableBetterLib() { sidebar.appendChild(library); center.appendChild(text); Spicetify.Platform.LocalStorageAPI.setItem("ylx-sidebar-state",lastSidebarMode); - document.documentElement.style.setProperty("--nav-bar-width", lastSidebarSize); + document.documentElement.style.setProperty("--left-sidebar-width", lastSidebarSize); betterLibIsEnabled = false; } diff --git a/app/index.js b/CustomApps/betterLibrary/index.js index 4b09a88..4b09a88 100644 --- a/app/index.js +++ b/CustomApps/betterLibrary/index.js diff --git a/app/loadcss.js b/CustomApps/betterLibrary/loadcss.js index 184b445..184b445 100644 --- a/app/loadcss.js +++ b/CustomApps/betterLibrary/loadcss.js diff --git a/app/manifest.json b/CustomApps/betterLibrary/manifest.json index 043f9d8..043f9d8 100644 --- a/app/manifest.json +++ b/CustomApps/betterLibrary/manifest.json diff --git a/app/style.css b/CustomApps/betterLibrary/style.css index 69f1b25..69f1b25 100644 --- a/app/style.css +++ b/CustomApps/betterLibrary/style.css |