This commit is contained in:
the-djmaze 2022-09-12 23:16:59 +02:00
parent 7dc4b283b3
commit aa90583116

View file

@ -495,7 +495,7 @@ export class MessageModel extends AbstractModel {
// init BlockquoteSwitcher
this.body.querySelectorAll('blockquote:not(.rl-bq-switcher)').forEach(node => {
node.removeAttribute('style')
if (node.textContent.trim() && !node.parentNode.closest('blockquote')) {
if (node.textContent.trim() && !node.parentNode.closest?.('blockquote')) {
let h = node.clientHeight || getRealHeight(node);
if (0 === h || 100 < h) {
const el = Element.fromHTML('<span class="rlBlockquoteSwitcher">•••</span>');