From 51f5e899fff9e804d9c91e4fefdd57ea5a85e99c Mon Sep 17 00:00:00 2001 From: Alessio Vanni Date: Thu, 4 Jul 2019 18:06:54 +0200 Subject: Make components and services global Given that they are used a lot, at least in vAPI, let's just define/import them only once. --- js/vapi-background.js | 2 -- 1 file changed, 2 deletions(-) (limited to 'js/vapi-background.js') diff --git a/js/vapi-background.js b/js/vapi-background.js index 067707c..9df1dbb 100644 --- a/js/vapi-background.js +++ b/js/vapi-background.js @@ -31,8 +31,6 @@ /******************************************************************************/ (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