mirror of
https://gitlab.com/SpaccInc/SpaccDotWeb.git
synced 2025-04-25 06:38:43 +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);
|
const dom = makeHtmlDom(html);
|
||||||
for (const element of dom.querySelectorAll('script, [src], link[rel=stylesheet][href]')) {
|
for (const element of dom.querySelectorAll('script, [src], link[rel=stylesheet][href]')) {
|
||||||
if (isUrlAbsolute(element.src || element.href)) {
|
if (isUrlAbsolute(element.src || element.href)) {
|
||||||
return;
|
continue;
|
||||||
}
|
}
|
||||||
if (element.tagName === 'SCRIPT') {
|
if (element.tagName === 'SCRIPT') {
|
||||||
const scriptOptions = JSON.parse(element.dataset.spaccdotweb || '{}');
|
const scriptOptions = JSON.parse(element.dataset.spaccdotweb || '{}');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user