Skip to content

Commit 6c50f1d

Browse files
committed
Fix lib_prefix reference
1 parent a96e73c commit 6c50f1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shinywidgets/_dependencies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def require_dependency(w: Widget, session: Session) -> Optional[HTMLDependency]:
9999
dep = HTMLDependency(module_name, version, source=source)
100100
# Get the location where the dependency files will be mounted by the shiny app
101101
# and use that to inform the requirejs import path
102-
href = dep.source_path_map(lib_prefix=session.app.LIB_PREFIX)["href"]
102+
href = dep.source_path_map(lib_prefix=session.app.lib_prefix)["href"]
103103
config = {"paths": {module_name: os.path.join(href, "index")}}
104104
# Basically our equivalent of the extension.js file provided by the cookiecutter
105105
# https://github.com/jupyter-widgets/widget-cookiecutter/blob/master/%7B%7Bcookiecutter.github_project_name%7D%7D/js/lib/extension.js

0 commit comments

Comments
 (0)