mirror of
https://github.com/tcsenpai/Zundler.git
synced 2025-06-07 03:55:26 +00:00
Fix wrong boolean logic in embed_css
This commit is contained in:
parent
bd6ad1fc69
commit
b9e88c0fa9
@ -106,7 +106,7 @@ var embed_js = function(doc) {
|
|||||||
|
|
||||||
var embed_css = function(doc) {
|
var embed_css = function(doc) {
|
||||||
Array.from(doc.querySelectorAll("link")).forEach( link => {
|
Array.from(doc.querySelectorAll("link")).forEach( link => {
|
||||||
if (link.getAttribute('rel') == 'stylesheet' && !link.getAttribute("href")) {
|
if (link.getAttribute('rel') == 'stylesheet' && link.getAttribute("href")) {
|
||||||
const style = doc.createElement("style");
|
const style = doc.createElement("style");
|
||||||
var href = link.getAttribute('href');
|
var href = link.getAttribute('href');
|
||||||
let [path, get_parameters, anchor] = split_url(href);
|
let [path, get_parameters, anchor] = split_url(href);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user