Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
11 changes: 1 addition & 10 deletions src/django_idom/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down