Skip to content

Commit

Permalink
Handle script and css files correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Sep 13, 2024
1 parent b1d403e commit db4b12e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nbsite/pyodide/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,13 +578,13 @@ def html_page_context(

context["script_files"] = [
ii for ii in context["script_files"]
if ii not in pyodide_scripts
if getattr(ii, 'filename', ii) not in pyodide_scripts
]

# Remove pyodide CSS files
context["css_files"] = [
ii for ii in context["css_files"]
if ii not in ['_static/runbutton.css']
if getattr(ii, 'filename', ii) not in ['_static/runbutton.css']
]


Expand Down

0 comments on commit db4b12e

Please sign in to comment.