File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1019,6 +1019,21 @@ Spicetify.Events = (() => {
10191019 Spicetify . Platform . UserAPI . _product_state_service = productStateApi ;
10201020 } ) ( ) ;
10211021
1022+ ( async function setButtonsHeight ( ) {
1023+ while ( ! Spicetify . CosmosAsync ) {
1024+ await new Promise ( ( res ) => setTimeout ( res , 100 ) ) ;
1025+ }
1026+ const expFeatures = JSON . parse ( localStorage . getItem ( "spicetify-exp-features" ) || "{}" ) ;
1027+ const isGlobalNavbar = expFeatures ?. enableGlobalNavBar ?. value ;
1028+
1029+ if ( typeof isGlobalNavbar !== "undefined" && isGlobalNavbar === "control" ) {
1030+ await Spicetify . CosmosAsync . post ( "sp://messages/v1/container/control" , {
1031+ type : "update_titlebar" ,
1032+ height : Spicetify . Platform . PlatformData . os_name === "windows" ? "40" : "42" ,
1033+ } ) ;
1034+ }
1035+ } ) ( ) ;
1036+
10221037 setInterval ( ( ) => {
10231038 if ( playerState . cache ?. isPaused === false ) {
10241039 const event = new Event ( "onprogress" ) ;
You can’t perform that action at this time.
0 commit comments