A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix: use DOMParser from globalThis
thecodrr0a05ec3cbd28
diff --git a/packages/core/utils/html-parser.js b/packages/core/utils/html-parser.jsindex 4e17f7908..f25c6dd80 100644--- a/packages/core/utils/html-parser.js+++ b/packages/core/utils/html-parser.js@@ -1,13 +1,10 @@import { decodeHTML5 } from "entities";-import { DOMParser } from "linkedom/worker";--const RealDOMParser =- "window" in global && "DOMParser" in window- ? new window.DOMParser()- : new DOMParser();export const parseHTML = (input) =>- RealDOMParser.parseFromString(wrapIntoHTMLDocument(input), "text/html");+ new globalThis.DOMParser().parseFromString(+ wrapIntoHTMLDocument(input),+ "text/html"+ );export function getDummyDocument() {const doc = parseHTML("<div></div>");