Skip to content

Commit

Permalink
move back css for last comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Mineev authored and umputun committed Apr 18, 2021
1 parent dfed7e1 commit c9841b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/app/last-comments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c9841b8

Please sign in to comment.