generated from mirrors/plugin-sample-vite-svelte
Remove unnecessary errors
Some checks are pending
Build on Push and create Release on Tag / build (push) Waiting to run
Some checks are pending
Build on Push and create Release on Tag / build (push) Waiting to run
This commit is contained in:
parent
338ac8594e
commit
b7c81d1fa0
2 changed files with 1 additions and 1 deletions
|
|
@ -42,6 +42,7 @@ export class ProtyleHelper {
|
|||
}
|
||||
|
||||
public static getElementAtTextIndex(root: Element, index: number): Node {
|
||||
if(!root) { return }
|
||||
let currentOffset = 0;
|
||||
const walker = document.createTreeWalker(root, NodeFilter.SHOW_TEXT, null);
|
||||
|
||||
|
|
|
|||
|
|
@ -42,7 +42,6 @@ export class SpellCheckerUI {
|
|||
// Get all text content
|
||||
const textContent = this.block?.innerText || '';
|
||||
if (startIndex >= textContent.length || endIndex > textContent.length || startIndex >= endIndex) {
|
||||
console.log('Invalid range');
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue