blob: da4f5e6a6f491e5320ba38222ad051e2829a921d [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 CCInfiniteScrollLoadMoreBarHandler extends CssSelectorNodeWatcherScriptHandler<InfiniteScrollNodeWatcherOptions> {
6 cssSelector = '.load-more-bar';
7
8 onMutatedNode({ node }: NodeMutation) {
9 this.options.ccInfiniteScroll.observeLoadMoreBar(node);
10 }
11}