mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 15:23:29 -05:00
Use Array.from for older browser support
This commit is contained in:
parent
4306cecb6e
commit
474847872c
1 changed files with 1 additions and 1 deletions
|
@ -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) => {
|
Array.from(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) {
|
||||||
|
|
Loading…
Reference in a new issue