blob: 543ddb00ed9f6aab2af4400c883d769a7a963047 [file] [log] [blame]
import CssSelectorNodeWatcherScriptHandler from '../../../../common/architecture/scripts/nodeWatcher/handlers/CssSelectorNodeWatcherScriptHandler';
import { NodeMutation } from '../../../../common/nodeWatcher/NodeWatcherHandler';
import { CCExtraInfoMainOptions } from '../../scripts/ccExtraInfoMain.script';
/**
* Inject extra info to threads in the thread list.
*/
export default class CCExtraInfoThreadReplyHandler extends CssSelectorNodeWatcherScriptHandler<CCExtraInfoMainOptions> {
cssSelector = 'sc-tailwind-thread-message-message-list sc-tailwind-thread-message-message-card';
onMutatedNode({ node }: NodeMutation) {
this.options.extraInfo.injectAtReplyIfEnabled(node);
}
}