From f0e5b31bdfdce0c32e655c191e2ca3088a92ff1a Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Mon, 12 Dec 2022 21:43:19 -0800 Subject: [PATCH] fix node and instance element stylesheet reference --- scripts/elements.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/elements.js b/scripts/elements.js index 132b5f5..947e2ea 100644 --- a/scripts/elements.js +++ b/scripts/elements.js @@ -8,7 +8,7 @@ class Node extends HTMLElement { let styleLink = document.createElement("link"); styleLink.rel = "stylesheet"; - styleLink.href = "style.css"; + styleLink.href = "css/style.css"; styleLink.type = "text/css"; shadowRoot.append(styleLink); @@ -63,7 +63,7 @@ class Instance extends HTMLElement { let styleLink = document.createElement("link"); styleLink.rel = "stylesheet"; - styleLink.href = "style.css"; + styleLink.href = "css/style.css"; styleLink.type = "text/css"; shadowRoot.append(styleLink);