move back css for last comments

This commit is contained in:
Pavel Mineev
2021-04-18 17:18:34 -05:00
committed by Umputun
parent dfed7e16ba
commit c9841b81e4
+5
View File
@@ -35,6 +35,11 @@ async function init(): Promise<void> {
throw new Error('Remark42: Site ID is undefined.');
}
const styles = document.createElement('link');
styles.href = `${BASE_URL}/web/last-comments.css`;
styles.rel = 'stylesheet';
(document.head || document.body).appendChild(styles);
(Array.from(nodes) as HTMLElement[]).forEach((node) => {
const max = (node.dataset.max && parseInt(node.dataset.max, 10)) || max_last_comments || DEFAULT_LAST_COMMENTS_MAX;
const locale = getLocale(window.remark_config);