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