mirror of
				https://github.com/Mibew/title-notification-plugin.git
				synced 2025-10-31 02:25:49 +03:00 
			
		
		
		
	Use "pageAdd*" events from the Events class
This commit is contained in:
		
							parent
							
								
									d052c6eb03
								
							
						
					
					
						commit
						78bf5a3343
					
				| @ -24,6 +24,7 @@ | |||||||
| namespace Mibew\Mibew\Plugin\TitleNotification; | namespace Mibew\Mibew\Plugin\TitleNotification; | ||||||
| 
 | 
 | ||||||
| use Mibew\EventDispatcher\EventDispatcher; | use Mibew\EventDispatcher\EventDispatcher; | ||||||
|  | use Mibew\EventDispatcher\Events; | ||||||
| use Symfony\Component\HttpFoundation\Request; | use Symfony\Component\HttpFoundation\Request; | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
| @ -92,7 +93,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi | |||||||
|     { |     { | ||||||
|         // Attach CSS and JS files of the plugin to chat window.
 |         // Attach CSS and JS files of the plugin to chat window.
 | ||||||
|         $dispatcher = EventDispatcher::getInstance(); |         $dispatcher = EventDispatcher::getInstance(); | ||||||
|         $dispatcher->attachListener('pageAddJS', $this, 'attachJsFiles'); |         $dispatcher->attachListener(Events::PAGE_ADD_JS, $this, 'attachJsFiles'); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     /** |     /** | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user