From fbb154ffb1bc1be56004820bf62015c92d13c3c5 Mon Sep 17 00:00:00 2001 From: Alessio Vanni Date: Thu, 4 Jul 2019 17:17:32 +0200 Subject: Temporarily fix undefined reference Ideally HttpObserver should be its own module, but right now it depends on too much "context" to be independent from vapi-background. --- js/vapi-background.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/vapi-background.js') 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', -- cgit v1.2.3