diff options
Diffstat (limited to 'js/vapi-core.js')
-rw-r--r-- | js/vapi-core.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/vapi-core.js b/js/vapi-core.js index c904ff2..e2afa4f 100644 --- a/js/vapi-core.js +++ b/js/vapi-core.js @@ -23,14 +23,14 @@ 'use strict'; +var vAPI = {}; + /******************************************************************************/ -(function () { +(function (self) { const {classes: Cc, interfaces: Ci, utils: Cu} = Components; Cu.import('resource://gre/modules/Services.jsm'); - let vAPI = self.vAPI = self.vAPI || {}; - vAPI.modernFirefox = Services.appinfo.ID === '{ec8030f7-c20a-464f-9b0e-13a3a9e97384}' && Services.vc.compare(Services.appinfo.version, '44') > 0; @@ -133,4 +133,4 @@ vAPI.lastError = function () { return null; }; -})(); +})(this); |