blob: 554be00f65754b5fe8802244f04e74bab5225746 [file] [log] [blame]
Adrià Vilanova Martínez58cc67c2024-04-21 16:43:01 +02001import CssSelectorNodeWatcherScriptHandler from '../../../common/architecture/scripts/nodeWatcher/handlers/CssSelectorNodeWatcherScriptHandler';
2import { NodeMutation } from '../../../common/nodeWatcher/NodeWatcherHandler';
3import { AutoRefreshNodeWatcherDependencies } from '../scripts/nodeWatcher.script';
4
5/**
6 * Sets up the autorefresh list feature.
7 */
8export default class AutoRefreshThreadListSetUpHandler extends CssSelectorNodeWatcherScriptHandler<AutoRefreshNodeWatcherDependencies> {
9 cssSelector = 'ec-thread-list';
10
11 onMutatedNode(_: NodeMutation) {
12 this.options.autoRefresh.setUp();
13 }
14}