blob: 5527e1ab0593082c778e7763701f7ed26d333d51 [file] [log] [blame]
import CssSelectorNodeWatcherScriptHandler from '../../../../common/architecture/scripts/nodeWatcher/handlers/CssSelectorNodeWatcherScriptHandler';
import { NodeMutation } from '../../../../presentation/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);
}
}