Explorar o código

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

Jason Crist %!s(int64=3) %!d(string=hai) anos
pai
achega
e463147f1d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      blockbase/inc/customizer/wp-customize-colors-preview.js

+ 1 - 1
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 ) => {