mirror of
https://github.com/docmost/docmost.git
synced 2025-11-16 05:21:10 +10:00
update dependencies
This commit is contained in:
@ -10,10 +10,7 @@ export function generateJSON(
|
||||
const schema = getSchema(extensions);
|
||||
|
||||
const window = new Window();
|
||||
const dom = new HappyDomParser(window).parseFromString(
|
||||
html,
|
||||
'text/html',
|
||||
).body;
|
||||
const dom = new HappyDomParser().parseFromString(html, 'text/html').body;
|
||||
|
||||
// @ts-ignore
|
||||
return DOMParser.fromSchema(schema).parse(dom, options).toJSON();
|
||||
|
||||
Reference in New Issue
Block a user