aboutsummaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/vapi-background.js4
-rw-r--r--js/vapi-net.js6
2 files changed, 5 insertions, 5 deletions
diff --git a/js/vapi-background.js b/js/vapi-background.js
index 8f095ae..0c14992 100644
--- a/js/vapi-background.js
+++ b/js/vapi-background.js
@@ -34,7 +34,7 @@
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
const {Services} = Cu.import('resource://gre/modules/Services.jsm', null);
const {HTTPRequestHeaders} =
- Cu.import('chrome://ematrix/content/HTTPRequestHeaders.jsm', null);
+ Cu.import('chrome://ematrix/content/HttpRequestHeaders.jsm', null);
let vAPI = self.vAPI; // Guaranteed to be initialized by vapi-core.js
@@ -71,7 +71,7 @@
}
};
- let httpObserver = {
+ vAPI.httpObserver = {
classDescription: 'net-channel-event-sinks for ' + location.host,
classID: Components.ID('{5d2e2797-6d68-42e2-8aeb-81ce6ba16b95}'),
contractID: '@' + location.host + '/net-channel-event-sinks;1',
diff --git a/js/vapi-net.js b/js/vapi-net.js
index c1a605d..3d5b27b 100644
--- a/js/vapi-net.js
+++ b/js/vapi-net.js
@@ -45,7 +45,7 @@
let shouldLoadListenerMessageName = location.host + ':shouldLoad';
let shouldLoadListener = function (e) {
let details = e.data;
- let pendingReq = httpObserver.createPendingRequest(details.url);
+ let pendingReq = vAPI.httpObserver.createPendingRequest(details.url);
pendingReq.rawType = details.rawType;
pendingReq.tabId = vAPI.tabs.manager.tabIdFromTarget(e.target);
};
@@ -59,7 +59,7 @@
shouldLoadListener);
}
- httpObserver.register();
+ vAPI.httpObserver.register();
vAPI.addCleanUpTask(function () {
if (!vAPI.modernFirefox) {
@@ -68,7 +68,7 @@
shouldLoadListener);
}
- httpObserver.unregister();
+ vAPI.httpObserver.unregister();
});
};
})();