Remove unnecessary errors
Some checks are pending
Build on Push and create Release on Tag / build (push) Waiting to run

This commit is contained in:
MassiveBox 2025-12-03 12:07:40 +01:00
parent 338ac8594e
commit b7c81d1fa0
Signed by: massivebox
GPG key ID: 9B74D3A59181947D
2 changed files with 1 additions and 1 deletions

View file

@ -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);

View file

@ -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;
}