Skip to content
This repository was archived by the owner on Nov 4, 2019. It is now read-only.

Commit 6a19472

Browse files
author
Abhinav Asthana
committed
Pre-production commit
1 parent 203267c commit 6a19472

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

extension/background_page.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,6 @@ function sendErrorToPostman(error) {
124124

125125
console.log(queue);
126126

127-
if (queue.length > 0) {
128-
sendXhrRequest(queue[0].postmanMessage.request);
129-
}
130-
131127
chrome.runtime.sendMessage(
132128
postmanAppId,
133129
{
@@ -141,6 +137,10 @@ function sendErrorToPostman(error) {
141137
console.log("Received response", response);
142138
}
143139
);
140+
141+
if (queue.length > 0) {
142+
sendXhrRequest(queue[0].postmanMessage.request);
143+
}
144144
}
145145

146146
function sendResponseToPostman(response, cookies) {
@@ -149,10 +149,6 @@ function sendResponseToPostman(response, cookies) {
149149

150150
console.log("QUEUE", queue);
151151

152-
if (queue.length > 0) {
153-
sendXhrRequest(queue[0].postmanMessage.request);
154-
}
155-
156152
chrome.runtime.sendMessage(
157153
postmanAppId,
158154
{
@@ -167,6 +163,10 @@ function sendResponseToPostman(response, cookies) {
167163
console.log("Received response", response);
168164
}
169165
);
166+
167+
if (queue.length > 0) {
168+
sendXhrRequest(queue[0].postmanMessage.request);
169+
}
170170
}
171171

172172
function sendXhrRequest(request) {

extension/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Postman Interceptor",
3-
"version": "0.1.6.1",
3+
"version": "0.1.6.2",
44
"description": "Sends requests fired through the Postman chrome app.",
55
"icons":{
66
"16":"icon_16.png",

0 commit comments

Comments
 (0)