1
0
forked from ScoDoc/ScoDoc

change link to ref-competences.css

This commit is contained in:
Emmanuel Viennet 2023-05-11 17:44:04 +02:00
parent d954aeac2b
commit e0408455eb

View File

@ -14,11 +14,11 @@ class ref_competences extends HTMLElement {
/* Style du module */ /* Style du module */
const styles = document.createElement('link'); const styles = document.createElement('link');
styles.setAttribute('rel', 'stylesheet'); styles.setAttribute('rel', 'stylesheet');
if (location.href.split("/")[3] == "ScoDoc") { // if (location.href.split("/")[3] == "ScoDoc") {
styles.setAttribute('href', '/ScoDoc/static/css/ref-competences.css'); styles.setAttribute('href', '/ScoDoc/static/css/ref-competences.css');
} else { // } else {
styles.setAttribute('href', 'ref-competences.css'); // styles.setAttribute('href', 'ref-competences.css');
} // }
this.shadow.appendChild(styles); this.shadow.appendChild(styles);
} }