From 1c42e1840c8d63cc226770a25378e92d7964d359 Mon Sep 17 00:00:00 2001 From: chrahe <christian.rahe@uni-hamburg.de> Date: Wed, 17 Nov 2021 17:36:57 +0100 Subject: [PATCH] hard coded style path --- style/inject.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/style/inject.js b/style/inject.js index dafce6d..200f9f9 100644 --- a/style/inject.js +++ b/style/inject.js @@ -1,8 +1,10 @@ +const STYLE_PATH = "https://gitlab.rrz.uni-hamburg.de/BAT0013/se1-assets/-/raw/main/style/"; + function injectStyle(stylesheet) { let link = document.createElement("link"); + link.href = STYLE_PATH + stylesheet; link.type = "text/css"; link.rel = "stylesheet"; - link.href = "./" + stylesheet; document.head.appendChild(link); } -- GitLab