Browse Source

minor code review

pull/2/head
gorhill 8 years ago
parent
commit
b07972c526
  1. 2
      platform/chromium/vapi-client.js
  2. 2
      platform/chromium/vapi-common.js
  3. 2
      platform/firefox/vapi-client.js
  4. 2
      platform/firefox/vapi-common.js

2
platform/chromium/vapi-client.js

@ -30,7 +30,7 @@
/******************************************************************************/
// https://bugs.chromium.org/p/project-zero/issues/detail?id=1225&desc=6#c10
if ( !self.vAPI || !self.vAPI.uMatrix ) {
if ( self.vAPI === undefined || self.vAPI.uMatrix !== true ) {
self.vAPI = { uMatrix: true };
}

2
platform/chromium/vapi-common.js

@ -31,7 +31,7 @@
/******************************************************************************/
// https://bugs.chromium.org/p/project-zero/issues/detail?id=1225&desc=6#c10
if ( !self.vAPI || !self.vAPI.uMatrix ) {
if ( self.vAPI === undefined || self.vAPI.uMatrix !== true ) {
self.vAPI = { uMatrix: true };
}

2
platform/firefox/vapi-client.js

@ -33,7 +33,7 @@
/******************************************************************************/
// https://bugs.chromium.org/p/project-zero/issues/detail?id=1225&desc=6#c10
if ( !self.vAPI || !self.vAPI.uMatrix ) {
if ( self.vAPI === undefined || self.vAPI.uMatrix !== true ) {
self.vAPI = { uMatrix: true };
}

2
platform/firefox/vapi-common.js

@ -37,7 +37,7 @@ const {Services} = Components.utils.import(
);
// https://bugs.chromium.org/p/project-zero/issues/detail?id=1225&desc=6#c10
if ( !self.vAPI || !self.vAPI.uMatrix ) {
if ( self.vAPI === undefined || self.vAPI.uMatrix !== true ) {
self.vAPI = { uMatrix: true };
}

Loading…
Cancel
Save