Skip to content

Commit

Permalink
pushing linting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qiyundai committed Mar 13, 2024
1 parent c877fc5 commit c3257f7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions blocks/page-server/page-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ async function sanitizeMeta(meta) {
meta.content = HtmlSanitizer.SanitizeHtml(meta.content);
}


export function titleCase(str) {
const splitStr = str.toLowerCase().split('-');
for (let i = 0; i < splitStr.length; i += 1) {
Expand All @@ -26,7 +25,6 @@ export function titleCase(str) {
return splitStr.join(' ');
}


// metadata -> dom blades
async function autoUpdatePage(main) {
if (!main) {
Expand Down Expand Up @@ -67,5 +65,5 @@ async function autoUpdatePage(main) {
}

export default function init(el) {
autoUpdatePage(document.querySelector('main'));
autoUpdatePage(el.closest('main'));
}

0 comments on commit c3257f7

Please sign in to comment.