From e182a7e602006a1f0228100fb5e8f0b572006de7 Mon Sep 17 00:00:00 2001 From: Mark <16909269+Archmonger@users.noreply.github.com> Date: Sat, 2 Jul 2022 01:14:02 -0700 Subject: [PATCH] Remove misc script from django_css (#83) * Remove misc script from django_css --- CHANGELOG.md | 2 +- src/django_idom/components.py | 11 +---------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bf2a083b..a283c7d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,7 +24,7 @@ Types of changes are to be listed in this order - Nothing (yet) -## [1.1.0] - 2022-06-25 +## [1.1.0] - 2022-07-01 ### Added diff --git a/src/django_idom/components.py b/src/django_idom/components.py index dab9a5d0..1433d30a 100644 --- a/src/django_idom/components.py +++ b/src/django_idom/components.py @@ -14,16 +14,7 @@ def django_css(static_path: str): static_path: The path to the static file. This path is identical to what you would use on a `static` template tag. """ - return html._( - html.script( - """ - let parentTag = document.currentScript; - console.log(parentTag); - //parentTag.attachShadow({ mode: 'open' }); - """ - ), - html.style(_cached_static_contents(static_path)), - ) + return html._(html.style(_cached_static_contents(static_path))) @component