Revert "💄"

This reverts commit 23b4873fda.
This commit is contained in:
Rob Lourens 2022-02-17 20:38:37 -08:00
parent 821cd165e9
commit 755bc5f7bf

View file

@ -401,6 +401,17 @@ 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