aboutsummaryrefslogtreecommitdiffstats
path: root/js/vapi-common.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/vapi-common.js')
-rw-r--r--js/vapi-common.js11
1 files changed, 2 insertions, 9 deletions
diff --git a/js/vapi-common.js b/js/vapi-common.js
index 46225b1..473ad89 100644
--- a/js/vapi-common.js
+++ b/js/vapi-common.js
@@ -25,19 +25,12 @@
'use strict';
+let vAPI = {};
+
(function (self) {
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
Cu.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?
- // In the meantime, let's remove the useless `eMatrix' property from vAPI
- if (self.vAPI === undefined) {
- self.vAPI = {};
- }
-
- let vAPI = self.vAPI; // This is used also when vapi-core is not available
-
vAPI.setTimeout = vAPI.setTimeout || function (callback, delay, extra) {
return setTimeout(function (a) {
callback(a);