mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 00:36:31 +02:00
fix(extension): use globalThis in mv3 background worker
This commit is contained in:
parent
594d2b1410
commit
c7ada1a101
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue