diff options
Diffstat (limited to 'vendor/assets/javascripts/peek.js')
-rw-r--r-- | vendor/assets/javascripts/peek.js | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/vendor/assets/javascripts/peek.js b/vendor/assets/javascripts/peek.js index 4db076d259a..427a8a3efad 100644 --- a/vendor/assets/javascripts/peek.js +++ b/vendor/assets/javascripts/peek.js @@ -1,13 +1,7 @@ -let requestId = null; - (function($) { var fetchRequestResults, getRequestId, peekEnabled, toggleBar, updatePerformanceBar; getRequestId = function() { - if (requestId != null) { - return requestId; - } else { - return $('#peek').data('request-id'); - } + return $('#peek').data('request-id'); }; peekEnabled = function() { return $('#peek').length; @@ -64,7 +58,7 @@ let requestId = null; } }; fetchRequestResults = function() { - return $.ajax('/peek/results', { + return $.ajax('/-/peek/results', { data: { request_id: getRequestId() }, |