From 6190e757d0ca4ef773d042892354881d00f0a7dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Sat, 26 Oct 2019 17:29:43 -0500 Subject: Fix spoof-script --- js/vapi-common.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'js/vapi-common.js') 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); -- cgit v1.2.3