From f1f66637b814155c95a2bfddfdd9cd2973b86659 Mon Sep 17 00:00:00 2001 From: Alessio Vanni Date: Thu, 4 Jul 2019 18:20:08 +0200 Subject: Revert "Make components and services global" This reverts commit 51f5e899fff9e804d9c91e4fefdd57ea5a85e99c. It seems to cause issues with the popup menu. --- js/vapi-background.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'js/vapi-background.js') diff --git a/js/vapi-background.js b/js/vapi-background.js index 9df1dbb..067707c 100644 --- a/js/vapi-background.js +++ b/js/vapi-background.js @@ -31,6 +31,8 @@ /******************************************************************************/ (function () { + const {classes: Cc, interfaces: Ci, utils: Cu} = Components; + Cu.import('resource://gre/modules/Services.jsm'); Cu.import('chrome://ematrix/content/HttpRequestHeaders.jsm'); let vAPI = self.vAPI; // Guaranteed to be initialized by vapi-core.js -- cgit v1.2.3