misuzu/assets/misuzu.js/comments/init.js

10 lines
298 B
JavaScript
Raw Normal View History

#include comments/section.jsx
const MszCommentsInit = () => {
const targets = Array.from($queryAll('.js-comments'));
for(const target of targets) {
const section = new MszCommentsSection({ category: target.dataset.category });
target.replaceWith(section.element);
}
};