aboutsummaryrefslogtreecommitdiffstats
path: root/js/vapi-storage.js
diff options
context:
space:
mode:
authorAlessio Vanni <vannilla@firemail.cc>2019-07-04 18:20:08 +0200
committerAlessio Vanni <vannilla@firemail.cc>2019-07-04 18:20:08 +0200
commitf1f66637b814155c95a2bfddfdd9cd2973b86659 (patch)
treeb6d25fdd7e168789ea3241b74d7333f24dab779b /js/vapi-storage.js
parentd8950421332a0d5b28cba6df38fc4fe85ff26d9e (diff)
downloadematrix-f1f66637b814155c95a2bfddfdd9cd2973b86659.tar.lz
ematrix-f1f66637b814155c95a2bfddfdd9cd2973b86659.tar.xz
ematrix-f1f66637b814155c95a2bfddfdd9cd2973b86659.zip
Revert "Make components and services global"
This reverts commit 51f5e899fff9e804d9c91e4fefdd57ea5a85e99c. It seems to cause issues with the popup menu.
Diffstat (limited to 'js/vapi-storage.js')
-rw-r--r--js/vapi-storage.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/vapi-storage.js b/js/vapi-storage.js
index 6dbb955..6a6cb3b 100644
--- a/js/vapi-storage.js
+++ b/js/vapi-storage.js
@@ -26,6 +26,9 @@
/******************************************************************************/
(function () {
+ const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
+ Cu.import('resource://gre/modules/Services.jsm');
+
let vAPI = self.vAPI; // Guaranteed to be initialized by vapi-background.js
// API matches that of chrome.storage.local: