@@ -648,9 +648,6 @@ applyScrollingFix();
648
648
ReactComponent : {
649
649
...Spicetify . ReactComponent ,
650
650
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
- ) ,
654
651
Menu : functionModules . find ( ( m ) => m . toString ( ) . includes ( "getInitialFocusElement" ) && m . toString ( ) . includes ( "children" ) ) ,
655
652
MenuItem : functionModules . find ( ( m ) => m . toString ( ) . includes ( "handleMouseEnter" ) && m . toString ( ) . includes ( "onClick" ) ) ,
656
653
MenuSubMenuItem : functionModules . find ( ( f ) => f . toString ( ) . includes ( "subMenuIcon" ) ) ,
@@ -887,10 +884,16 @@ applyScrollingFix();
887
884
} ) ;
888
885
889
886
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" ) )
891
890
) ;
892
891
if ( ! Spicetify . ReactComponent ?. ConfirmDialog && confirmDialogChunk ) {
893
892
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
+ ) ;
894
897
}
895
898
896
899
const contextMenuChunk = chunks . find ( ( [ , value ] ) => value . toString ( ) . includes ( "handleContextMenu" ) ) ;
0 commit comments