From e0408455eb77b20ffcc86fcfecb576f1ad1c1b86 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 11 May 2023 17:44:04 +0200 Subject: [PATCH] change link to ref-competences.css --- app/static/js/ref_competences.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/static/js/ref_competences.js b/app/static/js/ref_competences.js index a4668d68..4850acd4 100644 --- a/app/static/js/ref_competences.js +++ b/app/static/js/ref_competences.js @@ -14,11 +14,11 @@ class ref_competences extends HTMLElement { /* Style du module */ const styles = document.createElement('link'); styles.setAttribute('rel', 'stylesheet'); - if (location.href.split("/")[3] == "ScoDoc") { - styles.setAttribute('href', '/ScoDoc/static/css/ref-competences.css'); - } else { - styles.setAttribute('href', 'ref-competences.css'); - } + // if (location.href.split("/")[3] == "ScoDoc") { + styles.setAttribute('href', '/ScoDoc/static/css/ref-competences.css'); + // } else { + // styles.setAttribute('href', 'ref-competences.css'); + // } this.shadow.appendChild(styles); }