diff --git a/surfsense_browser_extension/background/messages/savesnapshot.ts b/surfsense_browser_extension/background/messages/savesnapshot.ts index d08bc08bd..8928e1b59 100644 --- a/surfsense_browser_extension/background/messages/savesnapshot.ts +++ b/surfsense_browser_extension/background/messages/savesnapshot.ts @@ -8,7 +8,7 @@ import { getRenderedHtml, webhistoryToLangChainDocument } from "~utils/commons"; import type { WebHistory } from "~utils/interfaces"; // @ts-ignore -global.Node = { +globalThis.Node = { ELEMENT_NODE: 1, ATTRIBUTE_NODE: 2, TEXT_NODE: 3,