From 78b64dc2c6225d2c820a8fb7bdaf8dd9a192f91e Mon Sep 17 00:00:00 2001 From: gorhill Date: Sat, 16 May 2015 13:40:56 -0400 Subject: [PATCH] this fixes bad test --- src/js/contentscript-end.js | 2 +- src/js/contentscript-start.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/contentscript-end.js b/src/js/contentscript-end.js index f7234d513..282056dcf 100644 --- a/src/js/contentscript-end.js +++ b/src/js/contentscript-end.js @@ -43,7 +43,7 @@ if ( window.location === null ) { } // This can happen -if ( !vAPI ) { +if ( typeof vAPI !== 'object' ) { //console.debug('contentscript-end.js > vAPI not found'); return; } diff --git a/src/js/contentscript-start.js b/src/js/contentscript-start.js index 9b8131ccc..255f075ed 100644 --- a/src/js/contentscript-start.js +++ b/src/js/contentscript-start.js @@ -41,7 +41,7 @@ if ( document instanceof HTMLDocument === false ) { } // This can happen -if ( !vAPI ) { +if ( typeof vAPI !== 'object' ) { //console.debug('contentscript-start.js > vAPI not found'); return; }