Skip to content

Commit

Permalink
fixed error when no duotone is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
MaggieCabrera authored and scruffian committed Feb 2, 2022
1 parent 3864d86 commit 813d146
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion blockbase/inc/customizer/wp-customize-colors-preview.js
Original file line number Diff line number Diff line change
@@ -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 ) => {
Expand Down

0 comments on commit 813d146

Please sign in to comment.