mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 14:39:34 +01:00
fix: HTMLParser.createElement is not a function
This commit is contained in:
@@ -7,5 +7,5 @@ export const parseHTML =
|
|||||||
|
|
||||||
export function getDummyDocument() {
|
export function getDummyDocument() {
|
||||||
const doc = parseHTML("<div></div>");
|
const doc = parseHTML("<div></div>");
|
||||||
return typeof DOMParser === "undefined" ? doc : doc.body.firstElementChild;
|
return typeof DOMParser === "undefined" ? doc : doc;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user