mirror of
https://gitlab.com/SpaccInc/SpaccDotWeb.git
synced 2025-04-22 21:37:18 +02:00
[Build] Fix BuildHTML
This commit is contained in:
parent
4330c971d1
commit
0ec9de91e7
@ -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 || '{}');
|
||||
|
Loading…
x
Reference in New Issue
Block a user