blob: 802dc51a8b831a6554d3e183d3b7035b9f93fb80 [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 CCExtraInfoThreadCommentHandler extends CssSelectorNodeWatcherScriptHandler<CCExtraInfoMainOptions> {
cssSelector = 'sc-tailwind-thread-message-message-list sc-tailwind-thread-message-comment-card';
onMutatedNode({ node }: NodeMutation) {
this.options.extraInfo.injectAtCommentIfEnabled(node);
}
}