You can share this story on social media:
Follow RT on
if (frame) {
rootObserver.disconnect();
const frameObserver = new MutationObserver(mutationRecords => {
if (mutationRecords[0].type === ‘attributes’) {
const main = frame.contentWindow.document.documentElement.querySelector(‘.root’);
if (main) {
currentRoot.style.setProperty(‘–comments-height’, `${main.clientHeight + 32}px`);
}
}
});
frameObserver.observe(frame, {
attributes: true,
});
}
}
});
rootObserver.observe(currentRoot, {
childList: true,
});
if (!window.REMARK42) {
!function (e, n) {
for (var o = 0; o < e.length; o++) {
var r = n.createElement(‘script’),
c=”.js”,
d = n.head || n.body;
‘noModule’ in r ? (r.type=”module”, c=”.mjs”) : r.async = !0,
r.defer = !0,
r.src = window.remark_config.host + ‘/web/’ + e[o] + c,
d.appendChild(r)
}
}(window.remark_config.components || [’embed’], document);
} else {
window.REMARK42.createInstance({
node: currentRoot,
…window.remark_config,
});
}
”
>
Show comments
if (frame) {
rootObserver.disconnect();
const frameObserver = new MutationObserver(mutationRecords => {
if (mutationRecords[0].type === ‘attributes’) {
const main = frame.contentWindow.document.documentElement.querySelector(‘.root’);
if (main) {
currentRoot.style.setProperty(‘–comments-height’, `${main.clientHeight + 32}px`);
}
}
});
frameObserver.observe(frame, {
attributes: true,
});
}
}
});
rootObserver.observe(currentRoot, {
childList: true,
});
if (!window.REMARK42) {
!function (e, n) {
for (var o = 0; o < e.length; o++) {
var r = n.createElement(‘script’),
c=”.js”,
d = n.head || n.body;
‘noModule’ in r ? (r.type=”module”, c=”.mjs”) : r.async = !0,
r.defer = !0,
r.src = window.remark_config.host + ‘/web/’ + e[o] + c,
d.appendChild(r)
}
}(window.remark_config.components || [’embed’], document);
} else {
window.REMARK42.createInstance({
node: currentRoot,
…window.remark_config,
});
}
”
>
Show comments