Skip to content

Commit

Permalink
Prevent dashboard polling when not authenticated
Browse files Browse the repository at this point in the history
  • Loading branch information
sbreker committed Aug 1, 2024
1 parent 9316f78 commit fe82c25
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dashboard/src/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
<script src="{% static 'vendor/jquery.idle-timer.js' %}" type="text/javascript"></script>
<script src="{% static 'vendor/underscore.js' %}" type="text/javascript"></script>
<script src="{% static 'vendor/backbone.js' %}" type="text/javascript"></script>
<script src="{% static 'js/status.js' %}" type="text/javascript"></script>
{% if user.is_authenticated %}
<script src="{% static 'js/status.js' %}" type="text/javascript"></script>
{% endif %}
<script src="{% static 'js/misc.js' %}" type="text/javascript"></script>
{% block js %}{% endblock %}
<script type="text/javascript">
Expand Down

0 comments on commit fe82c25

Please sign in to comment.