Adrià Vilanova Martínez | 58cc67c | 2024-04-21 16:43:01 +0200 | [diff] [blame] | 1 | import CssSelectorNodeWatcherScriptHandler from '../../../common/architecture/scripts/nodeWatcher/handlers/CssSelectorNodeWatcherScriptHandler'; |
Adrià Vilanova Martínez | 58cc67c | 2024-04-21 16:43:01 +0200 | [diff] [blame] | 2 | import { AutoRefreshNodeWatcherDependencies } from '../scripts/nodeWatcher.script'; |
| 3 | |
| 4 | /** |
| 5 | * Sets up the autorefresh list feature. |
| 6 | */ |
| 7 | export default class AutoRefreshThreadListSetUpHandler extends CssSelectorNodeWatcherScriptHandler<AutoRefreshNodeWatcherDependencies> { |
| 8 | cssSelector = 'ec-thread-list'; |
| 9 | |
Adrià Vilanova Martínez | e7f9be8 | 2024-05-31 22:37:04 +0200 | [diff] [blame] | 10 | onMutatedNode() { |
Adrià Vilanova Martínez | 58cc67c | 2024-04-21 16:43:01 +0200 | [diff] [blame] | 11 | this.options.autoRefresh.setUp(); |
| 12 | } |
| 13 | } |