Skip to content

Commit

Permalink
Fix canvas attribute selector
Browse files Browse the repository at this point in the history
  • Loading branch information
JoryHogeveen committed Aug 10, 2020
1 parent 8377b6c commit 115804e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions js/setup-validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ if ( 'undefined' === typeof ocsSetupValidate ) {
correct = false,
color;

if ( ! $( '[canvas]' ).length ) {
if ( ! $( '[data-canvas]' ).length ) {
errors.push( ocsSetupValidate.messages.error_website_before );
} else if ( ! $body.children( '[canvas]' ).length ) {
} else if ( ! $body.children( '[data-canvas]' ).length ) {
errors.push( ocsSetupValidate.messages.error_canvas_child );
} else if ( $body.children( '[canvas]' ).is( ':empty' ) ) {
} else if ( $body.children( '[data-canvas]' ).is( ':empty' ) ) {
errors.push( ocsSetupValidate.messages.error_canvas_empty );
}

Expand Down
2 changes: 1 addition & 1 deletion js/setup-validate.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 115804e

Please sign in to comment.