Pārlūkot izejas kodu

Fixed null-ref error when previewing colors for any theme but Skatepark (#5014)

Jason Crist 3 gadi atpakaļ
vecāks
revīzija
e463147f1d

+ 1 - 1
blockbase/inc/customizer/wp-customize-colors-preview.js

@@ -25,7 +25,7 @@ function blockBaseUpdateColorsPreview( palette ) {
 	);
 	);
 	styleElement.innerHTML = innerHTML;
 	styleElement.innerHTML = innerHTML;
 
 
-	if ( userColorDuotone ) {
+	if ( window.userColorDuotone ) {
 		const colors = palette.map( ( paletteItem ) => paletteItem.color );
 		const colors = palette.map( ( paletteItem ) => paletteItem.color );
 		//we are inverting the order when we have a darker background so that duotone looks good.
 		//we are inverting the order when we have a darker background so that duotone looks good.
 		colors.sort( ( first, second ) => {
 		colors.sort( ( first, second ) => {