By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

Try to stop PyCharm from complaining

roundabout,
created on Sunday, 15 September 2024, 11:43:08 (1726400588), received on Sunday, 15 September 2024, 11:43:39 (1726400619)
Author identity: vlad <vlad.muntoiu@gmail.com>

85d3e19a4ddf478cc9ca665b3695316dcd5efbff

dialogs.js

@@ -1,5 +1,4 @@

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            document.body.addEventListener('click', function (event) {
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          const dialog = event.target.closest('dialog'); // Find the closest dialog element
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              if (event.target.matches('dialog')) {
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                event.target.close();
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              }
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

toasts.js

@@ -1,6 +1,5 @@

                                
                                
                                
                            
                                
                                    
                                        
                                        function removeToast() {
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            const button = event.target;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            el = button;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        function removeToast(event) {
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            let el = event.target;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                // Check for the parent toast, remove it
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                while (el && el.parentNode) {