Skip to content

Commit

Permalink
Support local js_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Feb 18, 2024
1 parent ceb15c6 commit ec881f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panel/_templates/js_resources.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

{%- for name, file in js_module_exports.items() %}
<script type="module">
import {{ name }} from "{{ file }}";
import {{ name }} from "{% if not file.startswith('http') %}/{% endif %}{{ file }}";
window.{{ name }} = {{ name }}
</script>
{%- endfor %}
Expand Down

0 comments on commit ec881f4

Please sign in to comment.