@@ -648,9 +648,6 @@ applyScrollingFix();
648648 ReactComponent : {
649649 ...Spicetify . ReactComponent ,
650650 TextComponent : modules . find ( ( m ) => m ?. h1 && m ?. render ) ,
651- ConfirmDialog : functionModules . find (
652- ( m ) => m . toString ( ) . includes ( "isOpen" ) && m . toString ( ) . includes ( "shouldCloseOnEsc" ) && m . toString ( ) . includes ( "onClose" )
653- ) ,
654651 Menu : functionModules . find ( ( m ) => m . toString ( ) . includes ( "getInitialFocusElement" ) && m . toString ( ) . includes ( "children" ) ) ,
655652 MenuItem : functionModules . find ( ( m ) => m . toString ( ) . includes ( "handleMouseEnter" ) && m . toString ( ) . includes ( "onClick" ) ) ,
656653 MenuSubMenuItem : functionModules . find ( ( f ) => f . toString ( ) . includes ( "subMenuIcon" ) ) ,
@@ -887,10 +884,16 @@ applyScrollingFix();
887884 } ) ;
888885
889886 const confirmDialogChunk = chunks . find (
890- ( [ , value ] ) => value . toString ( ) . includes ( "confirmDialog" ) && value . toString ( ) . includes ( "shouldCloseOnEsc" ) && value . toString ( ) . includes ( "isOpen" )
887+ ( [ , value ] ) =>
888+ value . toString ( ) . includes ( "main-confirmDialog-container" ) ||
889+ ( value . toString ( ) . includes ( "confirmDialog" ) && value . toString ( ) . includes ( "shouldCloseOnEsc" ) && value . toString ( ) . includes ( "isOpen" ) )
891890 ) ;
892891 if ( ! Spicetify . ReactComponent ?. ConfirmDialog && confirmDialogChunk ) {
893892 Spicetify . ReactComponent . ConfirmDialog = Object . values ( require ( confirmDialogChunk [ 0 ] ) ) . find ( ( m ) => typeof m === "object" ) ;
893+ } else {
894+ Spicetify . ReactComponent . ConfirmDialog = functionModules . find (
895+ ( m ) => m . toString ( ) . includes ( "isOpen" ) && m . toString ( ) . includes ( "shouldCloseOnEsc" ) && m . toString ( ) . includes ( "onClose" )
896+ ) ;
894897 }
895898
896899 const contextMenuChunk = chunks . find ( ( [ , value ] ) => value . toString ( ) . includes ( "handleContextMenu" ) ) ;
0 commit comments