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

Commit 203267c

Browse files
author
Abhinav Asthana
committed
Fixed configuration script
1 parent 26e411e commit 203267c

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

extension/background_page.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,9 @@ function onExternalMessage(request, sender, sendResponse) {
387387
if (type === "xhrRequest") {
388388
addToQueue(request);
389389
}
390+
else if (type === "detectExtension") {
391+
sendResponse({"result": true});
392+
}
390393
} else {
391394
sendResponse({"result":"Ops, I don't understand this message"});
392395
}

extension/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ var POSTMAN_APP_ID_STAGING = "mgicbpdmnpnfckafakeoiomkjcplfcld";
33
var POSTMAN_APP_ID_DEV = "aglpidefogoeiamaehklpfoafichfmdk";
44
var POSTMAN_APP_ID_LOCAL = "aglpidefogoeiamaehklpfoafichfmdk";
55

6-
var postmanAppId = POSTMAN_INTERCEPTOR_ID_PRODUCTION; // Local dev
6+
var postmanAppId = POSTMAN_APP_ID_LOCAL; // Local dev

scripts/configure.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ def generate_config_file(web_url):
1717
template = Template(s)
1818

1919
if web_url == "production":
20-
app_id = 'POSTMAN_INTERCEPTOR_ID_PRODUCTION'
20+
app_id = 'POSTMAN_APP_ID_PRODUCTION'
2121
elif web_url == "staging":
22-
app_id = 'POSTMAN_INTERCEPTOR_ID_STAGING'
22+
app_id = 'POSTMAN_APP_ID_STAGING'
2323
elif web_url == "dev":
24-
app_id = 'POSTMAN_INTERCEPTOR_ID_DEV'
24+
app_id = 'POSTMAN_APP_ID_DEV'
2525
else:
26-
app_id = 'POSTMAN_INTERCEPTOR_ID_LOCAL'
26+
app_id = 'POSTMAN_APP_ID_LOCAL'
2727

2828
config_file = open(directory + "/../extension/config.js", "w")
2929
config_file.write(template.render(app_id=app_id))

0 commit comments

Comments
 (0)