mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 07:13:08 -05:00
Fix null deref in insertHTML
This commit is contained in:
parent
bb40d03899
commit
a899c001eb
3 changed files with 3 additions and 3 deletions
|
@ -4162,7 +4162,7 @@ proto.insertHTML = function ( html, isPaste ) {
|
|||
frag.normalize();
|
||||
|
||||
while ( node = getNextBlock( node, frag ) ) {
|
||||
fixCursor( node, null );
|
||||
fixCursor( node, root );
|
||||
}
|
||||
|
||||
if ( isPaste ) {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1768,7 +1768,7 @@ proto.insertHTML = function ( html, isPaste ) {
|
|||
frag.normalize();
|
||||
|
||||
while ( node = getNextBlock( node, frag ) ) {
|
||||
fixCursor( node, null );
|
||||
fixCursor( node, root );
|
||||
}
|
||||
|
||||
if ( isPaste ) {
|
||||
|
|
Loading…
Reference in a new issue