From 3c6fc07f55b0aeaa1bf0375570c5f400cf890029 Mon Sep 17 00:00:00 2001 From: itsgoingd Date: Tue, 23 Sep 2014 23:44:31 +0200 Subject: [PATCH] Added missing var statement, removed some debugging output. --- Clockwork Chrome/assets/javascripts/panel.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Clockwork Chrome/assets/javascripts/panel.js b/Clockwork Chrome/assets/javascripts/panel.js index da6cc79..1f2a3b4 100755 --- a/Clockwork Chrome/assets/javascripts/panel.js +++ b/Clockwork Chrome/assets/javascripts/panel.js @@ -44,10 +44,9 @@ Clockwork.controller('PanelController', function PanelController($scope, $http) }); }); - chrome.devtools.network.onRequestFinished.addListener(function(request) { - console.log(request); - - headers = request.response.headers; + chrome.devtools.network.onRequestFinished.addListener(function(request) + { + var headers = request.response.headers; var requestId = headers.find(function(x) { return x.name == 'X-Clockwork-Id'; }); var requestVersion = headers.find(function(x) { return x.name == 'X-Clockwork-Version'; }); var requestPath = headers.find(function(x) { return x.name == 'X-Clockwork-Path'; });