blob: 42c7a59377f0a910c372588dcddc948bcc93414a [file] [log] [blame]
import CssSelectorNodeWatcherScriptHandler from '../../../common/architecture/scripts/nodeWatcher/handlers/CssSelectorNodeWatcherScriptHandler';
import { NodeMutation } from '../../../presentation/nodeWatcher/NodeWatcherHandler';
import { CCDarkThemeNodeWatcherDependencies } from '../scripts/nodeWatcher.script';
/**
* Sets the report dialog iframe's theme to the appropriate theme.
*/
export default class CCDarkThemeReportDialogHandler extends CssSelectorNodeWatcherScriptHandler<CCDarkThemeNodeWatcherDependencies> {
cssSelector = 'iframe';
onMutatedNode(mutation: NodeMutation) {
this.options.reportDialogColorThemeFix.fixThemeIfReportDialogIframeAndApplicable(
mutation.node,
this.options.optionsProvider,
);
}
}