diff --git a/dev/Common/Html.js b/dev/Common/Html.js index 7fd5e0858..268877f61 100644 --- a/dev/Common/Html.js +++ b/dev/Common/Html.js @@ -1,4 +1,4 @@ -import { doc, createElement } from 'Common/Globals'; +import { createElement } from 'Common/Globals'; import { forEachObjectEntry, pInt } from 'Common/Utils'; import { SettingsUserStore } from 'Stores/User/Settings'; @@ -14,27 +14,13 @@ const "'": ''' }, - // eslint-disable-next-line max-len - hcont = Element.fromHTML('
'), - blockquoteSwitcher = () => { SettingsUserStore.collapseBlockquotes() && // tpl.content.querySelectorAll('blockquote').forEach(node => { [...tpl.content.querySelectorAll('blockquote')].reverse().forEach(node => { - let h = node.scrollHeight; -/* - if (!h) { - // Attempt to get height - hcont.innerHTML = node.outerHTML; - h = hcont.scrollHeight; - hcont.innerHTML = ''; - } -*/ - if (0 === h || 100 < h) { - const el = Element.fromHTML('
•••
'); - node.replaceWith(el); - el.append(node); - } + const el = Element.fromHTML('
•••
'); + node.replaceWith(el); + el.append(node); }); }, @@ -103,8 +89,6 @@ const return url; }; -doc.body.append(hcont); - export const /**