2025-02-16 00:19:42 +00:00
|
|
|
#include comments/section.jsx
|
|
|
|
|
|
|
|
const MszCommentsInit = () => {
|
|
|
|
const targets = Array.from($queryAll('.js-comments'));
|
|
|
|
for(const target of targets) {
|
2025-02-20 01:55:49 +00:00
|
|
|
const section = new MszCommentsSection({ category: target.dataset.category });
|
2025-02-16 00:19:42 +00:00
|
|
|
target.replaceWith(section.element);
|
|
|
|
}
|
|
|
|
};
|