fix: use linkedom/worker

This commit is contained in:
thecodrr
2022-06-08 10:56:53 +05:00
parent c660ef6721
commit e072d74483

View File

@@ -1,5 +1,5 @@
import { decodeHTML5 } from "entities"; import { decodeHTML5 } from "entities";
import { DOMParser } from "linkedom"; import { DOMParser } from "linkedom/worker";
const RealDOMParser = const RealDOMParser =
"window" in global && "DOMParser" in window "window" in global && "DOMParser" in window