From c7ada1a1014de06c73382d6f550d95b30715f11f Mon Sep 17 00:00:00 2001 From: Aleksas Pielikis Date: Thu, 12 Mar 2026 16:12:24 +0200 Subject: [PATCH] fix(extension): use globalThis in mv3 background worker --- surfsense_browser_extension/background/messages/savesnapshot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,