Skip to content

Commit

Permalink
Fix bug in WordPress embed block count (HTTPArchive#87)
Browse files Browse the repository at this point in the history
Fix wordpress embed block count
  • Loading branch information
tunetheweb authored Jul 11, 2023
1 parent e2086b3 commit e77b89d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/cms.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function hasWordPressEmbedBlock() {
// Count the number of WordPress embed blocks on the page, including a breakdown by type
function getWordPressEmbedBlockCounts() {
const embedBlocks = document.querySelectorAll('figure.wp-block-embed');
const embedsByType = [];
const embedsByType = {};
for (let embed of embedBlocks) {
let embedClasses = embed.className.split( ' ' );

Expand Down

0 comments on commit e77b89d

Please sign in to comment.