diff options
-rw-r--r-- | frameModule.js | 7 | ||||
-rw-r--r-- | js/vapi-background.js | 5 |
2 files changed, 6 insertions, 6 deletions
diff --git a/frameModule.js b/frameModule.js index 3f225df..92e4d5d 100644 --- a/frameModule.js +++ b/frameModule.js @@ -76,10 +76,9 @@ var contentObserver = { cpMessageName: hostName + ':shouldLoad', uniqueSandboxId: 1, modernFirefox: - Services.vc.compare(Services.appinfo.platformVersion, '44') > 0 && ( - Services.appinfo.ID === '{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}' || - Services.appinfo.ID === '{ec8030f7-c20a-464f-9b0e-13a3a9e97384}' - ), + (Services.appinfo.ID === '{ec8030f7-c20a-464f-9b0e-13a3a9e97384}' + || Services.appinfo.ID === '{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}') + && Services.vc.compare(Services.appinfo.version, '44') > 0, get componentRegistrar() { return Components.manager.QueryInterface(Ci.nsIComponentRegistrar); diff --git a/js/vapi-background.js b/js/vapi-background.js index d60ef53..22210bb 100644 --- a/js/vapi-background.js +++ b/js/vapi-background.js @@ -48,8 +48,9 @@ const {Services} = Cu.import('resource://gre/modules/Services.jsm', null); var vAPI = self.vAPI = self.vAPI || {}; vAPI.firefox = true; -vAPI.modernFirefox = Services.appinfo.ID === '{ec8030f7-c20a-464f-9b0e-13a3a9e97384}' && - Services.vc.compare(Services.appinfo.platformVersion, '44') > 0; + vAPI.modernFirefox = + Services.appinfo.ID === '{ec8030f7-c20a-464f-9b0e-13a3a9e97384}' + && Services.vc.compare(Services.appinfo.version, '44') > 0; /******************************************************************************/ |