Skip to content

Commit e182a7e

Browse files
authored
Remove misc script from django_css (#83)
* Remove misc script from django_css
1 parent 18a419f commit e182a7e

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

Diff for: CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Types of changes are to be listed in this order
2424

2525
- Nothing (yet)
2626

27-
## [1.1.0] - 2022-06-25
27+
## [1.1.0] - 2022-07-01
2828

2929
### Added
3030

Diff for: src/django_idom/components.py

+1-10
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,7 @@ def django_css(static_path: str):
1414
static_path: The path to the static file. This path is identical to what you would
1515
use on a `static` template tag.
1616
"""
17-
return html._(
18-
html.script(
19-
"""
20-
let parentTag = document.currentScript;
21-
console.log(parentTag);
22-
//parentTag.attachShadow({ mode: 'open' });
23-
"""
24-
),
25-
html.style(_cached_static_contents(static_path)),
26-
)
17+
return html._(html.style(_cached_static_contents(static_path)))
2718

2819

2920
@component

0 commit comments

Comments
 (0)