From e5cc26e3701d1461e020f176a534207df92243c0 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Thu, 26 Dec 2024 11:43:38 +0400 Subject: [PATCH] Fix ESLint error --- packages/block-editor/src/hooks/contrast-checker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-editor/src/hooks/contrast-checker.js b/packages/block-editor/src/hooks/contrast-checker.js index 1ed99511dadbf3..5468b0a5bb1ee7 100644 --- a/packages/block-editor/src/hooks/contrast-checker.js +++ b/packages/block-editor/src/hooks/contrast-checker.js @@ -49,7 +49,7 @@ function detectColors( blockEl ) { function createStyleObserver( node, callback ) { // Watch for changes to style-related attributes - const observer = new MutationObserver( ( mutations ) => { + const observer = new window.MutationObserver( ( mutations ) => { const hasStyleChanges = mutations.some( ( mutation ) => mutation.attributeName === 'style' );