Skip to content

Commit

Permalink
Ensure we use CDN resources in pyodide
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jan 21, 2025
1 parent 838fcc3 commit a4125e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panel/io/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def set_resource_mode(mode):
_settings.resources.set_value(old_resources)

def use_cdn() -> bool:
return _settings.resources(default="server") != 'server'
return _settings.resources(default="server") != 'server' or state._is_pyodide

def get_dist_path(cdn: bool | Literal['auto'] = 'auto') -> str:
cdn = use_cdn() if cdn == 'auto' else cdn
Expand Down

0 comments on commit a4125e9

Please sign in to comment.