web/views/_poll.erb in sidekiq-3.0.2 vs web/views/_poll.erb in sidekiq-3.1.0
- old
+ new
@@ -1,7 +1,7 @@
<% if params[:poll] %>
<script>
- setInterval("window.location.reload(true)", 2000);
+ setInterval("window.location.reload(true)", parseInt(localStorage.timeInterval) || 2000);
</script>
<% end %>
<% unless current_path == '' %>
<% if params[:poll] %>
<a id="live-poll" class="btn btn-primary active" href="<%= root_path %><%= current_path %>"><%= t('StopPolling') %></a>