This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const notice = (msg) => new Notice(msg, 5000); | |
const parseDOMFormString = (html) => { | |
return new DOMParser().parseFromString(html, "text/html"); | |
}; | |
const requestHtmlDoc = async (url) => { | |
const response = await request({ url }); | |
return parseDOMFormString(response); | |
}; |