mirror of
https://github.com/fastmail/Squire.git
synced 2025-01-18 04:32:28 -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 ) {
|
if ( fixer ) {
|
||||||
|
try {
|
||||||
node.appendChild( fixer );
|
node.appendChild( fixer );
|
||||||
|
} catch ( error ) {
|
||||||
|
getSquireInstance( doc ).didError({
|
||||||
|
name: 'Squire: fixCursor – ' + error,
|
||||||
|
message: 'Parent: ' + node.nodeName + '/' + node.innerHTML +
|
||||||
|
' appendChild: ' + fixer.nodeName
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return originalNode;
|
return originalNode;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -235,7 +235,15 @@ function fixCursor ( node, root ) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( fixer ) {
|
if ( fixer ) {
|
||||||
|
try {
|
||||||
node.appendChild( fixer );
|
node.appendChild( fixer );
|
||||||
|
} catch ( error ) {
|
||||||
|
getSquireInstance( doc ).didError({
|
||||||
|
name: 'Squire: fixCursor – ' + error,
|
||||||
|
message: 'Parent: ' + node.nodeName + '/' + node.innerHTML +
|
||||||
|
' appendChild: ' + fixer.nodeName
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return originalNode;
|
return originalNode;
|
||||||
|
|
Loading…
Add table
Reference in a new issue