From acd097e4733c106a15815c90e21c00d0c545e042 Mon Sep 17 00:00:00 2001 From: Alessio Vanni Date: Fri, 19 Jul 2019 16:00:08 +0200 Subject: Make components and Services.jsm global Once again, but this time it works. --- js/vapi-common.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js/vapi-common.js') diff --git a/js/vapi-common.js b/js/vapi-common.js index 473ad89..b7c5635 100644 --- a/js/vapi-common.js +++ b/js/vapi-common.js @@ -27,10 +27,10 @@ let vAPI = {}; -(function (self) { - const {classes: Cc, interfaces: Ci, utils: Cu} = Components; - Cu.import('resource://gre/modules/Services.jsm'); +const {classes: Cc, interfaces: Ci, utils: Cu} = Components; +Cu.import('resource://gre/modules/Services.jsm'); +(function (self) { vAPI.setTimeout = vAPI.setTimeout || function (callback, delay, extra) { return setTimeout(function (a) { callback(a); -- cgit v1.2.3