Skip to content

Commit

Permalink
stateengine plugin: auto update webif on start to automatically find …
Browse files Browse the repository at this point in the history
…out when visu can be redrawn.
  • Loading branch information
onkelandy committed Sep 10, 2023
1 parent 91f4f83 commit e9bdaa5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions stateengine/webif/templates/visu.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@
{% endblock pluginstyles %}
{% block pluginscripts %}
<script src="static/panzoom.min.js">
if ("{{firstrun}}" != 'None'){
window.update_active = true;
refresh.set_interval(5000, false);
</script>
<script>
function refreshGraph() {
Expand Down Expand Up @@ -149,6 +146,10 @@
<script>
window.addEventListener('load', function() {
initPanzoom();
if ("{{firstrun}}" != 'None'){
window.update_active = true;
refresh.set_interval(5000, false);
}
});
</script>
{% endblock pluginscripts %}
Expand Down

0 comments on commit e9bdaa5

Please sign in to comment.