[Build] Fix BuildHTML

This commit is contained in:
octospacc 2025-03-22 14:43:14 +01:00
parent 4330c971d1
commit 0ec9de91e7

View File

@ -80,7 +80,7 @@ const BuildHtml = async (html, options, files) => {
const dom = makeHtmlDom(html);
for (const element of dom.querySelectorAll('script, [src], link[rel=stylesheet][href]')) {
if (isUrlAbsolute(element.src || element.href)) {
return;
continue;
}
if (element.tagName === 'SCRIPT') {
const scriptOptions = JSON.parse(element.dataset.spaccdotweb || '{}');