From 8d8f4b22d4ba5704cf1453c37df11d1dba3ca591 Mon Sep 17 00:00:00 2001 From: gorhill Date: Sat, 31 Oct 2015 18:22:39 -0400 Subject: [PATCH] minor code review --- platform/firefox/vapi-background.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js index 737c402..6169e67 100644 --- a/platform/firefox/vapi-background.js +++ b/platform/firefox/vapi-background.js @@ -1765,10 +1765,7 @@ var httpObserver = { var URI = channel.URI; var channelData; - if ( - topic === 'http-on-examine-response' || - topic === 'http-on-examine-cached-response' - ) { + if ( topic.lastIndexOf('http-on-examine-', 0) === 0 ) { channelData = this.channelDataFromChannel(channel); if ( channelData === null ) { return;