mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 17:06:16 -04:00
fix tests and better dingdong
This commit is contained in:
parent
eba5827092
commit
8803c23a2d
2 changed files with 13 additions and 12 deletions
|
@ -434,7 +434,9 @@ Scroll.prototype.getCountOfVisibleCharsInViewport = (line, viewport) => {
|
|||
// each character
|
||||
let i = 0;
|
||||
console.log(node);
|
||||
if (!node || !node.childNodes) return;
|
||||
node = node.childNodes[0];
|
||||
if (!node) return; // temp patch to be removed.
|
||||
if (node.childNodes && node.childNodes[1].length === 0) return;
|
||||
console.log(node);
|
||||
console.log(node.wholeText.length);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue