Skip to content

Commit

Permalink
Remove misc script from django_css (#83)
Browse files Browse the repository at this point in the history
* Remove misc script from django_css
  • Loading branch information
Archmonger authored Jul 2, 2022
1 parent 18a419f commit e182a7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
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

0 comments on commit e182a7e

Please sign in to comment.