ajout de base et correction du script pour sélectionner le style
This commit is contained in:
+3
-3
@@ -5,7 +5,7 @@ export async function loadStatus(){
|
||||
|
||||
let html_text = await res.text()
|
||||
let html = new DOMParser().parseFromString(html_text, "text/html");
|
||||
|
||||
|
||||
let shaderSource = getDocumentShaderSource(html);
|
||||
|
||||
let target = document.querySelector('#statuSection');
|
||||
@@ -20,8 +20,8 @@ export async function loadStatus(){
|
||||
let isOpen = status.innerText.includes('ouvert');
|
||||
|
||||
let icon = html.querySelector('link[rel="icon"]');
|
||||
let style = html.querySelectorAll('link[rel="stylesheet"]')[0];
|
||||
//console.log("selected script: ", script);
|
||||
let style = html.querySelector('link[data-import="status-style"]');
|
||||
//console.log("selected style: ", style);
|
||||
|
||||
document.head.append(icon);
|
||||
document.head.append(style);
|
||||
|
||||
Reference in New Issue
Block a user