mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 15:23:29 -05:00
Log errors from fixCursor to track down bug
This commit is contained in:
parent
4ca3b20b8a
commit
3dca852630
3 changed files with 20 additions and 4 deletions
|
@ -406,7 +406,15 @@ function fixCursor ( node, root ) {
|
|||
}
|
||||
}
|
||||
if ( fixer ) {
|
||||
try {
|
||||
node.appendChild( fixer );
|
||||
} catch ( error ) {
|
||||
getSquireInstance( doc ).didError({
|
||||
name: 'Squire: fixCursor – ' + error,
|
||||
message: 'Parent: ' + node.nodeName + '/' + node.innerHTML +
|
||||
' appendChild: ' + fixer.nodeName
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return originalNode;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -235,7 +235,15 @@ function fixCursor ( node, root ) {
|
|||
}
|
||||
}
|
||||
if ( fixer ) {
|
||||
try {
|
||||
node.appendChild( fixer );
|
||||
} catch ( error ) {
|
||||
getSquireInstance( doc ).didError({
|
||||
name: 'Squire: fixCursor – ' + error,
|
||||
message: 'Parent: ' + node.nodeName + '/' + node.innerHTML +
|
||||
' appendChild: ' + fixer.nodeName
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return originalNode;
|
||||
|
|
Loading…
Reference in a new issue