Don't embed eternal CSS resources

This commit is contained in:
Adrian Vollmer 2024-04-08 18:53:29 +02:00
parent 648a962ca4
commit d0a6ba478e

View File

@ -106,7 +106,7 @@ var embed_js = function(doc) {
var embed_css = function(doc) {
Array.from(doc.querySelectorAll("link")).forEach( link => {
if (link.getAttribute('rel') == 'stylesheet') {
if (link.getAttribute('rel') == 'stylesheet' && !link.getAttribute("href")) {
const style = doc.createElement("style");
var href = link.getAttribute('href');
let [path, get_parameters, anchor] = split_url(href);