Skip to content

Commit

Permalink
Update add-new-preview-btn.js
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-anikeev authored Apr 9, 2024
1 parent 26a3dbc commit e0dc189
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/add-new-preview-btn.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

const addNewPreviewButton = () => {
try {
const previewBlock = document.querySelector( ".block-editor-post-preview__dropdown" );
const previewBlock = document.querySelector( ".editor-preview-dropdown" );
const decoupledPreviewBtn = document.getElementById( 'wp-admin-bar-decoupled-preview' );
// Remove the old Preview button.
// previewBlock.removeChild( previewBlock.querySelector( 'button' ) );
Expand Down

0 comments on commit e0dc189

Please sign in to comment.