diff --git a/blockbase/inc/customizer/wp-customize-colors-preview.js b/blockbase/inc/customizer/wp-customize-colors-preview.js index eb77b176b6..2b2ea652b6 100644 --- a/blockbase/inc/customizer/wp-customize-colors-preview.js +++ b/blockbase/inc/customizer/wp-customize-colors-preview.js @@ -25,7 +25,7 @@ function blockBaseUpdateColorsPreview( palette ) { ); styleElement.innerHTML = innerHTML; - if ( userColorDuotone ) { + if ( window.userColorDuotone ) { const colors = palette.map( ( paletteItem ) => paletteItem.color ); //we are inverting the order when we have a darker background so that duotone looks good. colors.sort( ( first, second ) => {