| @@ -77,9 +77,10 @@ | ||
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | private function get_app_js_config(): array { |
| 80 | 80 | return [ |
| 81 | - 'is_unread' => Options::has_unread_notifications(), | |
| 81 | + 'is_unread' => Options::has_unread_notifications(), | |
| 82 | + 'unread_count' => Options::get_unread_count(), | |
| 82 | 83 | ]; |
| 83 | 84 | } |
| 84 | 85 | |
| 85 | 86 | public function register_ajax_actions( $ajax ) { |