10 lines
298 B
JavaScript
10 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);
|
||
|
}
|
||
|
};
|