diff options
author | Alessio Vanni <vannilla@firemail.cc> | 2019-06-23 02:43:40 +0200 |
---|---|---|
committer | Alessio Vanni <vannilla@firemail.cc> | 2019-06-23 02:43:40 +0200 |
commit | 6458ec333511fe07101dd3afffbefed7b4fead07 (patch) | |
tree | 2c769d4fbc8ff3da5ad55700a9e08604a81f3cf0 /js/vapi-messaging.js | |
parent | d9858f22244f58eb2a305aa2e42439c77acdb861 (diff) | |
download | ematrix-6458ec333511fe07101dd3afffbefed7b4fead07.tar.lz ematrix-6458ec333511fe07101dd3afffbefed7b4fead07.tar.xz ematrix-6458ec333511fe07101dd3afffbefed7b4fead07.zip |
Make CallbackWrapper a module
In theory this way it can be used anywhere else if needed, but right
now it's simply because it has to be placed somewhere and a module
seems the best place for an object definition (constructor, etc.)
Diffstat (limited to 'js/vapi-messaging.js')
-rw-r--r-- | js/vapi-messaging.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/vapi-messaging.js b/js/vapi-messaging.js index abed913..b00c054 100644 --- a/js/vapi-messaging.js +++ b/js/vapi-messaging.js @@ -32,6 +32,8 @@ (function () { const {classes: Cc, interfaces: Ci, utils: Cu} = Components; const {Services} = Cu.import('resource://gre/modules/Services.jsm', null); + const {CallbackWrapper} = + Cu.import('chrome://ematrix/content/CallbackWrapper.jsm', null); let vAPI = self.vAPI; // Guaranteed to be initialized by vapi-background.js |