Skip to content

Commit

Permalink
fix windows paths for websocket
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-goeldi committed Oct 30, 2023
1 parent c5baf22 commit 8b97271
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kweb/templates/viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
</div>
</div>
{% if cell is defined %}
<script>var ws_url="{{ url }}"; var layer_props="{{ layer_props }}"; var file="{{ file }}"; var cell="{{ cell }}"</script>
<script>var ws_url="{{ url }}"; var layer_props=String.raw`{{ layer_props }}`; var file=String.raw`{{ file }}`; var cell="{{ cell }}"</script>
{% else %}
<script>var ws_url="{{ url }}"; var layer_props="{{ layer_props }}"; var file="{{ file }}"; var cell=null</script>
<script>var ws_url="{{ url }}"; var layer_props=String.raw`{{ layer_props }}``; var file=String.raw`{{ file }}`; var cell=null</script>
{% endif %}
<script type="text/javascript" src="{{ url_for("kweb_static", path="viewer.js") }}"></script>
<script type="text/javascript" src={{ url_for("kweb_static", path="/bootstrap/bootstrap.bundle.min.js") }}></script>
Expand Down

0 comments on commit 8b97271

Please sign in to comment.