Skip to content

Commit

Permalink
Remove redundant logic (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
schloerke authored Sep 29, 2023
1 parent 9bc85e2 commit 9bd5191
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions shinylive/_deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,9 @@ def _shinylive_common_dep_htmldep() -> QuartoHtmlDependency:
script_item: HtmlDepItem = {
"name": file,
"path": os.path.join(assets_dir, file),
"attribs": {"type": "module"},
}

if os.path.basename(file) in [
"load-shinylive-sw.js",
"run-python-blocks.js",
]:
script_item["attribs"] = {"type": "module"}

scripts.append(script_item)

if os.path.basename(file) in [
Expand Down

0 comments on commit 9bd5191

Please sign in to comment.