mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 06:29:29 +01:00
fix: HTMLParser.createElement is not a function
This commit is contained in:
@@ -7,5 +7,5 @@ export const parseHTML =
|
||||
|
||||
export function getDummyDocument() {
|
||||
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