diff --git a/frontend/app/common/config-types.ts b/frontend/app/common/config-types.ts index 369e5db2..078d1e3e 100644 --- a/frontend/app/common/config-types.ts +++ b/frontend/app/common/config-types.ts @@ -15,6 +15,7 @@ export interface CommentsConfig { max_shown_comments?: number; theme?: Theme; page_title?: string; + node?: string; } export interface LastCommentsConfig { diff --git a/frontend/app/embed.ts b/frontend/app/embed.ts index f86e6397..2f525a39 100644 --- a/frontend/app/embed.ts +++ b/frontend/app/embed.ts @@ -19,7 +19,7 @@ async function init(): Promise { __webpack_public_path__ = HOST + '/web/'; await loadPolyfills(); - const node = document.getElementById(NODE_ID); + const node = document.getElementById(remark_config.node || NODE_ID); if (!node) { console.error("Remark42: Can't find root node.");