mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-06-29 03:21:09 +12:00
code review for #390
This commit is contained in:
parent
8c6413bfe2
commit
72c9429d74
|
@ -74,7 +74,7 @@ var contentObserver = {
|
||||||
cpMessageName: hostName + ':shouldLoad',
|
cpMessageName: hostName + ':shouldLoad',
|
||||||
uniqueSandboxId: 1,
|
uniqueSandboxId: 1,
|
||||||
modernFirefox: Services.appinfo.ID === '{ec8030f7-c20a-464f-9b0e-13a3a9e97384}' &&
|
modernFirefox: Services.appinfo.ID === '{ec8030f7-c20a-464f-9b0e-13a3a9e97384}' &&
|
||||||
Services.vc.compare(Services.appinfo.platformVersion, '45.0') >= 0,
|
Services.vc.compare(Services.appinfo.platformVersion, '44') > 0,
|
||||||
|
|
||||||
get componentRegistrar() {
|
get componentRegistrar() {
|
||||||
return Components.manager.QueryInterface(Ci.nsIComponentRegistrar);
|
return Components.manager.QueryInterface(Ci.nsIComponentRegistrar);
|
||||||
|
|
|
@ -47,7 +47,7 @@ const {Services} = Cu.import('resource://gre/modules/Services.jsm', null);
|
||||||
var vAPI = self.vAPI = self.vAPI || {};
|
var vAPI = self.vAPI = self.vAPI || {};
|
||||||
vAPI.firefox = true;
|
vAPI.firefox = true;
|
||||||
vAPI.modernFirefox = Services.appinfo.ID === '{ec8030f7-c20a-464f-9b0e-13a3a9e97384}' &&
|
vAPI.modernFirefox = Services.appinfo.ID === '{ec8030f7-c20a-464f-9b0e-13a3a9e97384}' &&
|
||||||
Services.vc.compare(Services.appinfo.platformVersion, '45.0') >= 0;
|
Services.vc.compare(Services.appinfo.platformVersion, '44') > 0;
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue