0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2025-01-03 05:00:13 -05:00

Code style fix

This commit is contained in:
Neil Jenkins 2023-02-20 09:46:56 +11:00
parent cdb57ebda0
commit 9f258f2561

View file

@ -60,7 +60,7 @@ const fixContainer = (
root: Element | DocumentFragment, root: Element | DocumentFragment,
): Node => { ): Node => {
let wrapper: HTMLElement | null = null; let wrapper: HTMLElement | null = null;
[...container.childNodes].forEach(child => { [...container.childNodes].forEach((child) => {
const isBR = child.nodeName === 'BR'; const isBR = child.nodeName === 'BR';
if (!isBR && isInline(child)) { if (!isBR && isInline(child)) {
if (!wrapper) { if (!wrapper) {