aboutsummaryrefslogtreecommitdiffstats
path: root/js/vapi-window.js
diff options
context:
space:
mode:
authorAlessio Vanni <vannilla@firemail.cc>2019-07-04 17:33:06 +0200
committerAlessio Vanni <vannilla@firemail.cc>2019-07-04 17:33:06 +0200
commit9d87f8f864b28d182af9659a3095433adb4b0126 (patch)
treed0c1f6c22ea84802d0741fc66f31e84eebf092af /js/vapi-window.js
parente48dfcaa6bfd70c9d5eb075eeae164d230ee539b (diff)
downloadematrix-9d87f8f864b28d182af9659a3095433adb4b0126.tar.lz
ematrix-9d87f8f864b28d182af9659a3095433adb4b0126.tar.xz
ematrix-9d87f8f864b28d182af9659a3095433adb4b0126.zip
Change how modules are imported
I can't really find a reason why the returned value is preferred over the normal importing process. Additionally, there's a good chance importing Services.jsm can be done only once at the start of everything, instead of binding each object to a separate closure.
Diffstat (limited to 'js/vapi-window.js')
-rw-r--r--js/vapi-window.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/vapi-window.js b/js/vapi-window.js
index 3a59cb9..07fb80c 100644
--- a/js/vapi-window.js
+++ b/js/vapi-window.js
@@ -27,7 +27,7 @@
(function () {
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
- const {Services} = Cu.import('resource://gre/modules/Services.jsm', null);
+ Cu.import('resource://gre/modules/Services.jsm');
let vAPI = self.vAPI; // Guaranteed to be initialized by vapi-core.js