blob: 554be00f65754b5fe8802244f04e74bab5225746 [file] [log] [blame]
import CssSelectorNodeWatcherScriptHandler from '../../../common/architecture/scripts/nodeWatcher/handlers/CssSelectorNodeWatcherScriptHandler';
import { NodeMutation } from '../../../common/nodeWatcher/NodeWatcherHandler';
import { AutoRefreshNodeWatcherDependencies } from '../scripts/nodeWatcher.script';
/**
* Sets up the autorefresh list feature.
*/
export default class AutoRefreshThreadListSetUpHandler extends CssSelectorNodeWatcherScriptHandler<AutoRefreshNodeWatcherDependencies> {
cssSelector = 'ec-thread-list';
onMutatedNode(_: NodeMutation) {
this.options.autoRefresh.setUp();
}
}