aboutsummaryrefslogtreecommitdiffstats
path: root/js/vapi-common.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-common.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-common.js')
-rw-r--r--js/vapi-common.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/js/vapi-common.js b/js/vapi-common.js
index f1bc2ca..1bc20bc 100644
--- a/js/vapi-common.js
+++ b/js/vapi-common.js
@@ -33,10 +33,7 @@
/******************************************************************************/
-const {Services} = Components.utils.import(
- 'resource://gre/modules/Services.jsm',
- null
-);
+Components.utils.import('resource://gre/modules/Services.jsm');
// https://bugs.chromium.org/p/project-zero/issues/detail?id=1225&desc=6#c10
// eMatrix: does this apply to us?