diff --git a/blockbase/inc/customizer/wp-customize-colors-preview.js b/blockbase/inc/customizer/wp-customize-colors-preview.js index 99ff416cb6..f686990ecb 100644 --- a/blockbase/inc/customizer/wp-customize-colors-preview.js +++ b/blockbase/inc/customizer/wp-customize-colors-preview.js @@ -1,4 +1,8 @@ -var enabledDuotone = duotoneVars[ 'duotoneControl' ] === '1' ? true : false; +var enabledDuotone = false; + +if ( window.duotoneVars ) { + enabledDuotone = duotoneVars[ 'duotoneControl' ] === '1' ? true : false; +} wp.customize( 'duotone_control', ( value ) => { value.bind( ( newValue ) => {