diff options
author | Jesús <heckyel@hyperbola.info> | 2019-10-26 17:29:43 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2019-10-26 17:29:43 -0500 |
commit | 6190e757d0ca4ef773d042892354881d00f0a7dd (patch) | |
tree | 1b2ba91808087d97b11503093efce6e68795519e | |
parent | d610c87a53736071e1d7c8c7252268b6ceeaae4f (diff) | |
download | ematrix-6190e757d0ca4ef773d042892354881d00f0a7dd.tar.lz ematrix-6190e757d0ca4ef773d042892354881d00f0a7dd.tar.xz ematrix-6190e757d0ca4ef773d042892354881d00f0a7dd.zip |
Fix spoof-script
-rw-r--r-- | js/vapi-client.js | 6 | ||||
-rw-r--r-- | js/vapi-common.js | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/js/vapi-client.js b/js/vapi-client.js index 2532977..68da828 100644 --- a/js/vapi-client.js +++ b/js/vapi-client.js @@ -26,6 +26,12 @@ 'use strict'; (function (self) { + if (self.vAPI === undefined) { + self.vAPI = {}; + } + + let vAPI = self.vAPI; + vAPI.setTimeout = vAPI.setTimeout || function (callback, delay, extra) { return setTimeout(function (a) { callback(a); diff --git a/js/vapi-common.js b/js/vapi-common.js index 6a79096..5304e5a 100644 --- a/js/vapi-common.js +++ b/js/vapi-common.js @@ -31,6 +31,10 @@ const {classes: Cc, interfaces: Ci, utils: Cu} = Components; Cu.import('resource://gre/modules/Services.jsm'); (function (self) { + if (self.vAPI === undefined) { + self.vAPI = vAPI; + } + vAPI.setTimeout = vAPI.setTimeout || function (callback, delay, extra) { return setTimeout(function (a) { callback(a); |