fix(extension): use globalThis in mv3 background worker

This commit is contained in:
Aleksas Pielikis 2026-03-12 16:12:24 +02:00
parent 594d2b1410
commit c7ada1a101

View file

@ -8,7 +8,7 @@ import { getRenderedHtml, webhistoryToLangChainDocument } from "~utils/commons";
import type { WebHistory } from "~utils/interfaces"; import type { WebHistory } from "~utils/interfaces";
// @ts-ignore // @ts-ignore
global.Node = { globalThis.Node = {
ELEMENT_NODE: 1, ELEMENT_NODE: 1,
ATTRIBUTE_NODE: 2, ATTRIBUTE_NODE: 2,
TEXT_NODE: 3, TEXT_NODE: 3,