misuzu/assets/misuzu.js/comments/init.js
flashwave 7353553de7 Rewrote the comments system. (#1)
old one basically bitrotted to death, may it rinse in prosciutto

Reviewed-on: #1
Co-authored-by: flashwave <me@flash.moe>
Co-committed-by: flashwave <me@flash.moe>
2025-02-20 02:19:32 +00:00

9 lines
298 B
JavaScript

#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);
}
};