blob: ee54aff6f262b04f3ffe2aa2aa5ba7502b09e7ce [file] [log] [blame]
Adrià Vilanova Martínez18d03c42024-04-21 16:43:01 +02001import { NodeMutation } from '../../../common/nodeWatcher/NodeWatcherHandler';
2import CssSelectorNodeWatcherScriptHandler from '../../../common/architecture/scripts/nodeWatcher/handlers/CssSelectorNodeWatcherScriptHandler';
3import { InfiniteScrollNodeWatcherOptions } from '../scripts/ccInfiniteScroll.script';
4
5export default class CCInfiniteScrollLoadMoreBtnHandler extends CssSelectorNodeWatcherScriptHandler<InfiniteScrollNodeWatcherOptions> {
6 cssSelector =
7 '.scTailwindThreadMorebuttonbutton, .scTailwindThreadMessagegapbutton';
8
9 onMutatedNode({ node }: NodeMutation) {
10 this.options.ccInfiniteScroll.observeLoadMoreInteropBtn(node);
11 }
12}