This commit is contained in:
rebornix 2022-02-04 16:42:05 -08:00
parent f71d4b6a02
commit 23b4873fda
No known key found for this signature in database
GPG key ID: 181FC90D15393C20

View file

@ -404,17 +404,6 @@ async function webviewPreloads(ctx: PreloadContext) {
});
}
function isAncestor(testChild: Node | null, testAncestor: Node | null): boolean {
while (testChild) {
if (testChild === testAncestor) {
return true;
}
testChild = testChild.parentNode;
}
return false;
}
function _internalHighlightRange(range: Range, tagName = 'mark', attributes = {}) {
// derived from https://github.com/Treora/dom-highlight-range/blob/master/highlight-range.js