File tree Expand file tree Collapse file tree 1 file changed +8
-17
lines changed Expand file tree Collapse file tree 1 file changed +8
-17
lines changed Original file line number Diff line number Diff line change @@ -380,25 +380,16 @@ async function loadApp() {
380380	checkPluginsUpdate ( ) 
381381		. then ( ( updates )  =>  { 
382382			if  ( ! updates . length )  return ; 
383- 			const  $icon  =  ( 
384- 				< span 
385- 					onclick = { ( )  =>  { 
383+ 			acode . pushNotification ( 
384+ 				"Plugin Updates" , 
385+ 				`${ updates . length }   plugin${ updates . length  >  1  ? "s"  : "" }   ${ updates . length  >  1  ? "have"  : "has" }   new version${ updates . length  >  1  ? "s"  : "" }   available.` , 
386+ 				{ 
387+ 					icon : "extension" , 
388+ 					action : ( )  =>  { 
386389						plugins ( updates ) ; 
387- 						$icon . remove ( ) ; 
388- 					} } 
389- 					attr-action = "" 
390- 					style = { {  fontSize : "1.2rem"  } } 
391- 					className = "icon notifications" 
392- 				> </ span > 
390+ 					} , 
391+ 				} , 
393392			) ; 
394- 
395- 			if  ( $editMenuToggler . isConnected )  { 
396- 				$header . insertBefore ( $icon ,  $editMenuToggler ) ; 
397- 			}  else  if  ( $runBtn . isConnected )  { 
398- 				$header . insertBefore ( $icon ,  $runBtn ) ; 
399- 			}  else  { 
400- 				$header . insertBefore ( $icon ,  $menuToggler ) ; 
401- 			} 
402393		} ) 
403394		. catch ( console . error ) ; 
404395
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments