From 329983b09f4f328b1f1a243ac90e78d199e9c0fe Mon Sep 17 00:00:00 2001 From: cryptk Date: Tue, 9 Aug 2016 18:40:49 -0500 Subject: [PATCH] Allow setting tick rate via URL param for debugging (#175) Signed-off-by: Chris Jowett --- opsy/views/main/static/js/opsy/opsy.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/opsy/views/main/static/js/opsy/opsy.js b/opsy/views/main/static/js/opsy/opsy.js index afa9ee1..cd76ad2 100644 --- a/opsy/views/main/static/js/opsy/opsy.js +++ b/opsy/views/main/static/js/opsy/opsy.js @@ -203,3 +203,8 @@ String.prototype.capitalize = function(all) { return b; })(window.location.search.substr(1).split('&')); })(jQuery); + +$(document).ready(function() { + opsy.task.tickRate = $.QueryString.tickrate !== undefined ? + $.QueryString.tickrate : opsy.task.tickRate; +});