diff --git a/depictions/web/js/content-blocks-index.js b/depictions/web/js/content-blocks-index.js index 61802123..496452c1 100644 --- a/depictions/web/js/content-blocks-index.js +++ b/depictions/web/js/content-blocks-index.js @@ -53,7 +53,7 @@ function getContentBlocks() { source: "package>screenshots>screenshot", render: (element, source) => { $("#screenshotsLink").remove(); - if ($(source).size() === 0) { + if ($(source).length === 0) { return; } // create screenshots link @@ -79,7 +79,7 @@ function getContentBlocks() { source: "package>changelog>change", render: (element, source) => { $("#changelogLink").remove(); - if ($(source).size() === 0) { + if ($(source).length === 0) { return; } // create changelog link @@ -103,7 +103,7 @@ function getContentBlocks() { source: "package>links>link", paragraphElement: "